Skip to content

Commit b3a08a7

Browse files
committed
1 parent 55aec82 commit b3a08a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/openApi/v2/parser/getType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function getType(value?: string, template?: string): Type {
2020
isNullable: false,
2121
};
2222

23-
const valueClean = stripNamespace(value || '');
23+
const valueClean = decodeURIComponent(stripNamespace(value || ''));
2424

2525
if (/\[.*\]$/g.test(valueClean)) {
2626
const matches = valueClean.match(/(.*?)\[(.*)\]$/);

src/openApi/v3/parser/getType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getType(values?: string | string[], template?: string): Type {
3333
return result;
3434
}
3535

36-
const valueClean = stripNamespace(values || '');
36+
const valueClean = decodeURIComponent(stripNamespace(values || ''));
3737

3838
if (/\[.*\]$/g.test(valueClean)) {
3939
const matches = valueClean.match(/(.*?)\[(.*)\]$/);

0 commit comments

Comments
 (0)