From e9b45b3bf32c7c7340edb4f819b8ab9bc90b39e8 Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Tue, 4 Aug 2020 09:53:45 +0200 Subject: [PATCH 1/8] some code I added to make OpenApi reader work on my files --- .../JSONPrimitiveSchema.extension/instance/acceptOpenApi..st | 3 +++ .../JSONPrimitiveSchema.extension/properties.json | 3 +++ .../OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st create mode 100644 source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json create mode 100644 source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st diff --git a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st new file mode 100644 index 0000000..ac0fe7f --- /dev/null +++ b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st @@ -0,0 +1,3 @@ +*OpenAPI-Core +acceptOpenApi: aVisitor + ^ self \ No newline at end of file diff --git a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json new file mode 100644 index 0000000..d79324a --- /dev/null +++ b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json @@ -0,0 +1,3 @@ +{ + "name" : "JSONPrimitiveSchema" +} \ No newline at end of file diff --git a/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st b/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st new file mode 100644 index 0000000..2b30ceb --- /dev/null +++ b/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st @@ -0,0 +1,3 @@ +accessing +neoJsonMapping: mapper + mapper for: self do: [ :mapping | ] \ No newline at end of file From 7cb5f9b28bb2b5e97e9b35277f7540dc15c4c494 Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Tue, 4 Aug 2020 12:33:05 +0200 Subject: [PATCH 2/8] added example with minItems: --- .../petStoreApiJsonStringWithMinItems.st | 191 ++++++++++++++++++ .../testParsingOpenAPIWithMinItems.st | 10 + 2 files changed, 201 insertions(+) create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st new file mode 100644 index 0000000..752de42 --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st @@ -0,0 +1,191 @@ +as yet unclassified +petStoreApiJsonStringWithMinItems + ^ '{ + "openapi": "3.0.0", + "info": { + "version": "1.0.0", + "title": "Swagger Petstore", + "license": { + "name": "MIT" + } + }, + "servers": [ + { + "url": "http://petstore.swagger.io/v1" + } + ], + "paths": { + "/pets": { + "get": { + "summary": "List all pets", + "operationId": "listPets", + "tags": [ + "pets" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "How many items to return at one time (max 100)", + "required": false, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "An paged array of pets", + "headers": { + "x-next": { + "description": "A link to the next page of responses", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pets" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "post": { + "summary": "Create a pet", + "operationId": "createPets", + "tags": [ + "pets" + ], + "requestBody" : { + + "content": { + "application/json": { + "schema": { + "type": "array", + "items": {"$ref": "#/components/schemas/Pet"}, + "minItems": 1 + } + } + } + }, + "responses": { + "201": { + "description": "Null response" + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/pets/{petId}": { + "get": { + "summary": "Info for a specific pet", + "operationId": "showPetById", + "tags": [ + "pets" + ], + "parameters": [ + { + "name": "petId", + "in": "path", + "required": true, + "description": "The id of the pet to retrieve", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Expected response to a valid request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pets" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Pet": { + "type" : "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" + }, + "tag": { + "type": "string" + } + } + }, + "Pets": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + }, + "Error": { + "type" : "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + } + } + } + } + } +}' \ No newline at end of file diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st new file mode 100644 index 0000000..366ec0e --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st @@ -0,0 +1,10 @@ +tests +testParsingOpenAPIWithMinItems + | api path | + api := OpenAPI fromString: self petStoreApiJsonStringWithMinItems. + self assert: api info title equals: 'Swagger Petstore'. + self assert: api openapi equals: '3.0.0'. + self assert: api paths size = 2. + + path := api paths values first. + path should beInstanceOf: OAPathItem. \ No newline at end of file From a96f2d8c4189ad9ea59990444850121aed7eab07 Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Tue, 4 Aug 2020 16:03:46 +0200 Subject: [PATCH 3/8] implemented tests using #minItems --- .../instance/schemaArrayMinItems.st | 10 ++++++++++ .../instance/testParsingSchemaMinItems.st | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/schemaArrayMinItems.st create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingSchemaMinItems.st diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/schemaArrayMinItems.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/schemaArrayMinItems.st new file mode 100644 index 0000000..9c7d03d --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/schemaArrayMinItems.st @@ -0,0 +1,10 @@ +as yet unclassified +schemaArrayMinItems + + ^ '{ + + "type": "array", + "items": {"$ref": "#/components/schemas/Pet"}, + "minItems": 1 + +}' \ No newline at end of file diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingSchemaMinItems.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingSchemaMinItems.st new file mode 100644 index 0000000..4a9a25c --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingSchemaMinItems.st @@ -0,0 +1,5 @@ +tests +testParsingSchemaMinItems + | schemaDefinition | + schemaDefinition := NeoJSONReader fromString: self schemaArrayMinItems as: OASchemaDefinition. + self assert: schemaDefinition schemaClass equals: JSONSchemaArray \ No newline at end of file From b2133556ad101498adc9182083b4b89c87eddf74 Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Tue, 4 Aug 2020 16:29:07 +0200 Subject: [PATCH 4/8] added test illustrating #acceptOpenApi: for string format --- .../instance/petStoreApiJsonStringWithEnum.st | 179 ++++++++++++++++++ .../instance/testParsingOpenAPIWithMinEnum.st | 10 + 2 files changed, 189 insertions(+) create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithEnum.st create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinEnum.st diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithEnum.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithEnum.st new file mode 100644 index 0000000..b3c0a35 --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithEnum.st @@ -0,0 +1,179 @@ +as yet unclassified +petStoreApiJsonStringWithEnum + ^ '{ + "openapi": "3.0.0", + "info": { + "version": "1.0.0", + "title": "Swagger Petstore", + "license": { + "name": "MIT" + } + }, + "servers": [ + { + "url": "http://petstore.swagger.io/v1" + } + ], + "paths": { + "/pets": { + "get": { + "summary": "List all pets", + "operationId": "listPets", + "tags": [ + "pets" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "How many items to return at one time (max 100)", + "required": false, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "An paged array of pets", + "headers": { + "x-next": { + "description": "A link to the next page of responses", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pets" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "post": { + "summary": "Create a pet", + "operationId": "createPets", + "tags": [ + "pets" + ], + "requestBody" : { + + "content": { + "application/json": { + "schema": { + "type": "array", + "items": {"$ref": "#/components/schemas/Pet"}, + "minItems": 1 + } + } + } + }, + "responses": { + "201": { + "description": "Null response" + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/pets/{petId}": { + "get": { + "summary": "Info for a specific pet", + "operationId": "showPetById", + "tags": [ + "pets" + ], + "parameters": [ + { + "name": "petId", + "in": "path", + "required": true, + "description": "The id of the pet to retrieve", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Expected response to a valid request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Pets" + } + } + } + }, + "default": { + "description": "unexpected error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "Pet": { + "type": "string", + "enum": [ + "PET_A", + "PET_B" + ] + }, + "Pets": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Pet" + } + }, + "Error": { + "type" : "object", + "required": [ + "code", + "message" + ], + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + } + } + } + } + } +}' \ No newline at end of file diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinEnum.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinEnum.st new file mode 100644 index 0000000..e17ff6d --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinEnum.st @@ -0,0 +1,10 @@ +tests +testParsingOpenAPIWithMinEnum + | api path | + api := OpenAPI fromString: self petStoreApiJsonStringWithEnum. + self assert: api info title equals: 'Swagger Petstore'. + self assert: api openapi equals: '3.0.0'. + self assert: api paths size = 2. + + path := api paths values first. + path should beInstanceOf: OAPathItem. \ No newline at end of file From 2a8ee03c70a89f28e80669b9c823337e4c431cc4 Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Tue, 4 Aug 2020 16:52:40 +0200 Subject: [PATCH 5/8] added test for responses with links --- .../instance/responseObjectJSONWithLinks.st | 31 +++++++++++++++++++ .../instance/testParsingResponseWithLinks.st | 13 ++++++++ 2 files changed, 44 insertions(+) create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/responseObjectJSONWithLinks.st create mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingResponseWithLinks.st diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/responseObjectJSONWithLinks.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/responseObjectJSONWithLinks.st new file mode 100644 index 0000000..708f700 --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/responseObjectJSONWithLinks.st @@ -0,0 +1,31 @@ +as yet unclassified +responseObjectJSONWithLinks + ^ ' +{ +"description": "Response with links", +"content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "_embedded" + ], + "properties": { + "_embedded": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Booking" + } + } + } + } + } + }, +"links": { + "getActionsForBooking": { + "$ref": "#/components/links/getActionsForBooking" + } + } +} + +'. \ No newline at end of file diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingResponseWithLinks.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingResponseWithLinks.st new file mode 100644 index 0000000..4174508 --- /dev/null +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingResponseWithLinks.st @@ -0,0 +1,13 @@ +tests +testParsingResponseWithLinks + | response | + response := NeoJSONReader fromString: self responseObjectJSONWithLinks as: OAResponse. + + response should beInstanceOf: OAResponse. + response description should equal: 'Response with links'. + + response content should + beInstanceOf: Dictionary; + haveSize: 1; + includeKey: 'application/json'. + response content values do: [ :each | each should beInstanceOf: OAMediaTypeObject. ]. \ No newline at end of file From 0b1e3bf05eb989ea2206bb7b65676d44b9edb752 Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Tue, 4 Aug 2020 17:00:22 +0200 Subject: [PATCH 6/8] renamed test --- ...rsingOpenAPIWithMinEnum.st => testParsingOpenAPIWithEnum.st} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/{testParsingOpenAPIWithMinEnum.st => testParsingOpenAPIWithEnum.st} (90%) diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinEnum.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithEnum.st similarity index 90% rename from source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinEnum.st rename to source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithEnum.st index e17ff6d..e9a0a13 100644 --- a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinEnum.st +++ b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithEnum.st @@ -1,5 +1,5 @@ tests -testParsingOpenAPIWithMinEnum +testParsingOpenAPIWithEnum | api path | api := OpenAPI fromString: self petStoreApiJsonStringWithEnum. self assert: api info title equals: 'Swagger Petstore'. From 176079c43ab62f820e5902ae51eebe2d7ca63eca Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Thu, 6 Aug 2020 15:21:12 +0200 Subject: [PATCH 7/8] removed useless test for #minItems: --- .../petStoreApiJsonStringWithMinItems.st | 191 ------------------ .../testParsingOpenAPIWithMinItems.st | 10 - .../instance/acceptOpenApi..st | 2 +- .../OALink.class/class/neoJsonMapping..st | 2 +- 4 files changed, 2 insertions(+), 203 deletions(-) delete mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st delete mode 100644 source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st deleted file mode 100644 index 752de42..0000000 --- a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/petStoreApiJsonStringWithMinItems.st +++ /dev/null @@ -1,191 +0,0 @@ -as yet unclassified -petStoreApiJsonStringWithMinItems - ^ '{ - "openapi": "3.0.0", - "info": { - "version": "1.0.0", - "title": "Swagger Petstore", - "license": { - "name": "MIT" - } - }, - "servers": [ - { - "url": "http://petstore.swagger.io/v1" - } - ], - "paths": { - "/pets": { - "get": { - "summary": "List all pets", - "operationId": "listPets", - "tags": [ - "pets" - ], - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "How many items to return at one time (max 100)", - "required": false, - "schema": { - "type": "integer", - "format": "int32" - } - } - ], - "responses": { - "200": { - "description": "An paged array of pets", - "headers": { - "x-next": { - "description": "A link to the next page of responses", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pets" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } - }, - "post": { - "summary": "Create a pet", - "operationId": "createPets", - "tags": [ - "pets" - ], - "requestBody" : { - - "content": { - "application/json": { - "schema": { - "type": "array", - "items": {"$ref": "#/components/schemas/Pet"}, - "minItems": 1 - } - } - } - }, - "responses": { - "201": { - "description": "Null response" - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } - } - }, - "/pets/{petId}": { - "get": { - "summary": "Info for a specific pet", - "operationId": "showPetById", - "tags": [ - "pets" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "required": true, - "description": "The id of the pet to retrieve", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Expected response to a valid request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Pets" - } - } - } - }, - "default": { - "description": "unexpected error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } - } - } - }, - "components": { - "schemas": { - "Pet": { - "type" : "object", - "required": [ - "id", - "name" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - }, - "tag": { - "type": "string" - } - } - }, - "Pets": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Pet" - } - }, - "Error": { - "type" : "object", - "required": [ - "code", - "message" - ], - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - } - } - } - } - } -}' \ No newline at end of file diff --git a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st b/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st deleted file mode 100644 index 366ec0e..0000000 --- a/source/OpenAPI-Core-Tests.package/OAParsingTests.class/instance/testParsingOpenAPIWithMinItems.st +++ /dev/null @@ -1,10 +0,0 @@ -tests -testParsingOpenAPIWithMinItems - | api path | - api := OpenAPI fromString: self petStoreApiJsonStringWithMinItems. - self assert: api info title equals: 'Swagger Petstore'. - self assert: api openapi equals: '3.0.0'. - self assert: api paths size = 2. - - path := api paths values first. - path should beInstanceOf: OAPathItem. \ No newline at end of file diff --git a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st index ac0fe7f..9119dc2 100644 --- a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st +++ b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st @@ -1,3 +1,3 @@ *OpenAPI-Core acceptOpenApi: aVisitor - ^ self \ No newline at end of file + ^ self \ No newline at end of file diff --git a/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st b/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st index 2b30ceb..ec920f2 100644 --- a/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st +++ b/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st @@ -1,3 +1,3 @@ accessing neoJsonMapping: mapper - mapper for: self do: [ :mapping | ] \ No newline at end of file + mapper for: self do: [ :mapping | ]. \ No newline at end of file From ca9048d89afe95e1bf996445b314e9820082a688 Mon Sep 17 00:00:00 2001 From: cdelaunay Date: Thu, 6 Aug 2020 15:24:20 +0200 Subject: [PATCH 8/8] removed hack attempts in order to let test fail and find appropriate fixes --- .../JSONPrimitiveSchema.extension/instance/acceptOpenApi..st | 3 --- .../JSONPrimitiveSchema.extension/properties.json | 3 --- .../OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st | 3 --- 3 files changed, 9 deletions(-) delete mode 100644 source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st delete mode 100644 source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json delete mode 100644 source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st diff --git a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st deleted file mode 100644 index 9119dc2..0000000 --- a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/instance/acceptOpenApi..st +++ /dev/null @@ -1,3 +0,0 @@ -*OpenAPI-Core -acceptOpenApi: aVisitor - ^ self \ No newline at end of file diff --git a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json b/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json deleted file mode 100644 index d79324a..0000000 --- a/source/OpenAPI-Core.package/JSONPrimitiveSchema.extension/properties.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "name" : "JSONPrimitiveSchema" -} \ No newline at end of file diff --git a/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st b/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st deleted file mode 100644 index ec920f2..0000000 --- a/source/OpenAPI-Core.package/OALink.class/class/neoJsonMapping..st +++ /dev/null @@ -1,3 +0,0 @@ -accessing -neoJsonMapping: mapper - mapper for: self do: [ :mapping | ]. \ No newline at end of file