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'