Skip to content

Commit 5a8c40b

Browse files
committed
- Added addional space test case
1 parent e83f7fa commit 5a8c40b

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

test/__snapshots__/index.spec.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ export type ModelWithProperties = {
942942
number?: number;
943943
boolean?: boolean;
944944
reference?: ModelWithString;
945+
'property with space'?: string;
945946
readonly '@namespace.string'?: string;
946947
readonly '@namespace.integer'?: number;
947948
}
@@ -1615,6 +1616,9 @@ export const $ModelWithProperties = {
16151616
reference: {
16161617
type: 'ModelWithString',
16171618
},
1619+
'property with space': {
1620+
type: 'string',
1621+
},
16181622
'@namespace.string': {
16191623
type: 'string',
16201624
isReadOnly: true,
@@ -3298,6 +3302,7 @@ export type ModelWithProperties = {
32983302
number?: number;
32993303
boolean?: boolean;
33003304
reference?: ModelWithString;
3305+
'property with space'?: string;
33013306
readonly '@namespace.string'?: string;
33023307
readonly '@namespace.integer'?: number;
33033308
}
@@ -4126,6 +4131,9 @@ export const $ModelWithProperties = {
41264131
reference: {
41274132
type: 'ModelWithString',
41284133
},
4134+
'property with space': {
4135+
type: 'string',
4136+
},
41294137
'@namespace.string': {
41304138
type: 'string',
41314139
isReadOnly: true,

test/spec/v2.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,9 @@
10661066
"reference": {
10671067
"$ref": "#/definitions/ModelWithString"
10681068
},
1069+
"property with space": {
1070+
"type": "string"
1071+
},
10691072
"@namespace.string": {
10701073
"type": "string",
10711074
"readOnly": true

test/spec/v3.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,9 @@
17141714
"reference": {
17151715
"$ref": "#/components/schemas/ModelWithString"
17161716
},
1717+
"property with space": {
1718+
"type": "string"
1719+
},
17171720
"@namespace.string": {
17181721
"type": "string",
17191722
"readOnly": true

0 commit comments

Comments
 (0)