From 5a8c40b8ee139e5b0b9180438b8991c42fdaaa80 Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Fri, 18 Dec 2020 12:02:52 +0100 Subject: [PATCH] - Added addional space test case --- test/__snapshots__/index.spec.js.snap | 8 ++++++++ test/spec/v2.json | 3 +++ test/spec/v3.json | 3 +++ 3 files changed, 14 insertions(+) diff --git a/test/__snapshots__/index.spec.js.snap b/test/__snapshots__/index.spec.js.snap index de9cfaff..d3c6ad3a 100644 --- a/test/__snapshots__/index.spec.js.snap +++ b/test/__snapshots__/index.spec.js.snap @@ -942,6 +942,7 @@ export type ModelWithProperties = { number?: number; boolean?: boolean; reference?: ModelWithString; + 'property with space'?: string; readonly '@namespace.string'?: string; readonly '@namespace.integer'?: number; } @@ -1615,6 +1616,9 @@ export const $ModelWithProperties = { reference: { type: 'ModelWithString', }, + 'property with space': { + type: 'string', + }, '@namespace.string': { type: 'string', isReadOnly: true, @@ -3298,6 +3302,7 @@ export type ModelWithProperties = { number?: number; boolean?: boolean; reference?: ModelWithString; + 'property with space'?: string; readonly '@namespace.string'?: string; readonly '@namespace.integer'?: number; } @@ -4126,6 +4131,9 @@ export const $ModelWithProperties = { reference: { type: 'ModelWithString', }, + 'property with space': { + type: 'string', + }, '@namespace.string': { type: 'string', isReadOnly: true, diff --git a/test/spec/v2.json b/test/spec/v2.json index d0762044..dc5f53dd 100644 --- a/test/spec/v2.json +++ b/test/spec/v2.json @@ -1066,6 +1066,9 @@ "reference": { "$ref": "#/definitions/ModelWithString" }, + "property with space": { + "type": "string" + }, "@namespace.string": { "type": "string", "readOnly": true diff --git a/test/spec/v3.json b/test/spec/v3.json index 6f20181f..fb605ac3 100644 --- a/test/spec/v3.json +++ b/test/spec/v3.json @@ -1714,6 +1714,9 @@ "reference": { "$ref": "#/components/schemas/ModelWithString" }, + "property with space": { + "type": "string" + }, "@namespace.string": { "type": "string", "readOnly": true