From d0e004dc153acb2c6f9a95243d7e1c740cf1708d Mon Sep 17 00:00:00 2001 From: Hari Krishnan Date: Mon, 5 Aug 2024 13:29:26 +0530 Subject: [PATCH] - Making inline example non compliant - Adding non-compliant externalised example --- .../store/openapi/product_search_bff_v4.yaml | 2 +- .../example-1.json | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 io/specmatic/examples/store/openapi/product_search_bff_v4_examples/example-1.json diff --git a/io/specmatic/examples/store/openapi/product_search_bff_v4.yaml b/io/specmatic/examples/store/openapi/product_search_bff_v4.yaml index 07656a1..ef9afee 100644 --- a/io/specmatic/examples/store/openapi/product_search_bff_v4.yaml +++ b/io/specmatic/examples/store/openapi/product_search_bff_v4.yaml @@ -35,7 +35,7 @@ paths: SUCCESS: value: name: iPhone - type: gadget + type: accessories inventory: 100 responses: '201': diff --git a/io/specmatic/examples/store/openapi/product_search_bff_v4_examples/example-1.json b/io/specmatic/examples/store/openapi/product_search_bff_v4_examples/example-1.json new file mode 100644 index 0000000..f892dc7 --- /dev/null +++ b/io/specmatic/examples/store/openapi/product_search_bff_v4_examples/example-1.json @@ -0,0 +1,24 @@ +{ + "http-request": { + "path": "/products", + "method": "POST", + "headers": { + "Content-Type": "application/json" + }, + "body": { + "name": "iPhone", + "type": "gadget", + "inventory": "100" + } + }, + "http-response": { + "status": 201, + "body": { + "id": 574 + }, + "status-text": "Created", + "headers": { + "Content-Type": "application/json" + } + } +} \ No newline at end of file