From e28926a7b9c8e4e8dca37795af5e8653d2eda9d7 Mon Sep 17 00:00:00 2001 From: Stefan Date: Wed, 25 Dec 2024 12:15:44 +0100 Subject: [PATCH] update tests --- test-data/customer-input-schema.json | 50 +-------------------------- test-data/customer-output-schema.json | 50 +-------------------------- 2 files changed, 2 insertions(+), 98 deletions(-) diff --git a/test-data/customer-input-schema.json b/test-data/customer-input-schema.json index 66408f06..ca43477f 100644 --- a/test-data/customer-input-schema.json +++ b/test-data/customer-input-schema.json @@ -6,55 +6,7 @@ "id": "4354dede-b4ed-4a57-9b80-45c1e33e2326", "name": "request", "content": { - "schema": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Generated schema for Root", - "type": "object", - "properties": { - "color": { - "enum": [ - "red", - "blue", - "green" - ] - }, - "customer": { - "type": "object", - "properties": { - "firstName": { - "description": "Customer first name", - "type": "string", - "minimum": 1 - }, - "lastName": { - "description": "Customer last name", - "type": "string", - "minimum": 1 - }, - "email": { - "description": "Customer email", - "type": "string", - "format": "email" - }, - "age": { - "description": "Customer age", - "type": "number", - "minimum": 18 - } - }, - "required": [ - "firstName", - "lastName", - "email", - "age" - ] - } - }, - "required": [ - "color", - "customer" - ] - } + "schema": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"title\":\"Generated schema for Root\",\"type\":\"object\",\"properties\":{\"color\":{\"enum\":[\"red\",\"blue\",\"green\"]},\"customer\":{\"type\":\"object\",\"properties\":{\"firstName\":{\"description\":\"Customer first name\",\"type\":\"string\",\"minimum\":1},\"lastName\":{\"description\":\"Customer last name\",\"type\":\"string\",\"minimum\":1},\"email\":{\"description\":\"Customer email\",\"type\":\"string\",\"format\":\"email\"},\"age\":{\"description\":\"Customer age\",\"type\":\"number\",\"minimum\":18}},\"required\":[\"firstName\",\"lastName\",\"email\",\"age\"]}},\"required\":[\"color\",\"customer\"]}" }, "position": { "x": 90, diff --git a/test-data/customer-output-schema.json b/test-data/customer-output-schema.json index bc33b511..158960ad 100644 --- a/test-data/customer-output-schema.json +++ b/test-data/customer-output-schema.json @@ -15,55 +15,7 @@ "id": "27e18970-f565-43eb-859e-568c9f53b7a8", "name": "response", "content": { - "schema": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Generated schema for Root", - "type": "object", - "properties": { - "color": { - "enum": [ - "red", - "blue", - "green" - ] - }, - "customer": { - "type": "object", - "properties": { - "firstName": { - "description": "Customer first name", - "type": "string", - "minimum": 1 - }, - "lastName": { - "description": "Customer last name", - "type": "string", - "minimum": 1 - }, - "email": { - "description": "Customer email", - "type": "string", - "format": "email" - }, - "age": { - "description": "Customer age", - "type": "number", - "minimum": 18 - } - }, - "required": [ - "firstName", - "lastName", - "email", - "age" - ] - } - }, - "required": [ - "color", - "customer" - ] - } + "schema": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"title\":\"Generated schema for Root\",\"type\":\"object\",\"properties\":{\"color\":{\"enum\":[\"red\",\"blue\",\"green\"]},\"customer\":{\"type\":\"object\",\"properties\":{\"firstName\":{\"description\":\"Customer first name\",\"type\":\"string\",\"minimum\":1},\"lastName\":{\"description\":\"Customer last name\",\"type\":\"string\",\"minimum\":1},\"email\":{\"description\":\"Customer email\",\"type\":\"string\",\"format\":\"email\"},\"age\":{\"description\":\"Customer age\",\"type\":\"number\",\"minimum\":18}},\"required\":[\"firstName\",\"lastName\",\"email\",\"age\"]}},\"required\":[\"color\",\"customer\"]}" }, "position": { "x": 510,