Skip to content

Commit

Permalink
feat(specs): add source json to ingestion client (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
morganleroi authored Dec 28, 2022
1 parent 86c6168 commit dd4fdef
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion specs/ingestion/common/schemas/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ SourceUpdateResponse:

SourceType:
type: string
enum: ['bigcommerce', 'commercetools']
enum: ['bigcommerce', 'commercetools', 'json']

SourceCommercetools:
type: object
Expand Down Expand Up @@ -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'

0 comments on commit dd4fdef

Please sign in to comment.