From dd4fdefd023223ec72e56176a2acb14f09c221e9 Mon Sep 17 00:00:00 2001 From: Morgan Leroi Date: Wed, 28 Dec 2022 15:43:56 +0100 Subject: [PATCH] feat(specs): add source json to ingestion client (#1200) --- specs/ingestion/common/schemas/source.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/specs/ingestion/common/schemas/source.yml b/specs/ingestion/common/schemas/source.yml index c65c3ae56b..d71bfb7e30 100644 --- a/specs/ingestion/common/schemas/source.yml +++ b/specs/ingestion/common/schemas/source.yml @@ -87,7 +87,7 @@ SourceUpdateResponse: SourceType: type: string - enum: ['bigcommerce', 'commercetools'] + enum: ['bigcommerce', 'commercetools', 'json'] SourceCommercetools: type: object @@ -120,7 +120,23 @@ SourceBigCommerce: required: - store_hash +MethodType: + type: string + enum: ['GET', 'POST'] + +SourceJson: + type: object + additionalProperties: false + properties: + url: + type: string + method: + $ref: '#/MethodType' + required: + - url + SourceInput: oneOf: - $ref: '#/SourceCommercetools' - $ref: '#/SourceBigCommerce' + - $ref: '#/SourceJson'