mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
parent
55aec82b8c
commit
b3a08a7c69
@ -20,7 +20,7 @@ export function getType(value?: string, template?: string): Type {
|
||||
isNullable: false,
|
||||
};
|
||||
|
||||
const valueClean = stripNamespace(value || '');
|
||||
const valueClean = decodeURIComponent(stripNamespace(value || ''));
|
||||
|
||||
if (/\[.*\]$/g.test(valueClean)) {
|
||||
const matches = valueClean.match(/(.*?)\[(.*)\]$/);
|
||||
|
||||
@ -33,7 +33,7 @@ export function getType(values?: string | string[], template?: string): Type {
|
||||
return result;
|
||||
}
|
||||
|
||||
const valueClean = stripNamespace(values || '');
|
||||
const valueClean = decodeURIComponent(stripNamespace(values || ''));
|
||||
|
||||
if (/\[.*\]$/g.test(valueClean)) {
|
||||
const matches = valueClean.match(/(.*?)\[(.*)\]$/);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user