Skip to content

Commit dd4fdef

Browse files
authored
feat(specs): add source json to ingestion client (#1200)
1 parent 86c6168 commit dd4fdef

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

specs/ingestion/common/schemas/source.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ SourceUpdateResponse:
8787

8888
SourceType:
8989
type: string
90-
enum: ['bigcommerce', 'commercetools']
90+
enum: ['bigcommerce', 'commercetools', 'json']
9191

9292
SourceCommercetools:
9393
type: object
@@ -120,7 +120,23 @@ SourceBigCommerce:
120120
required:
121121
- store_hash
122122

123+
MethodType:
124+
type: string
125+
enum: ['GET', 'POST']
126+
127+
SourceJson:
128+
type: object
129+
additionalProperties: false
130+
properties:
131+
url:
132+
type: string
133+
method:
134+
$ref: '#/MethodType'
135+
required:
136+
- url
137+
123138
SourceInput:
124139
oneOf:
125140
- $ref: '#/SourceCommercetools'
126141
- $ref: '#/SourceBigCommerce'
142+
- $ref: '#/SourceJson'

0 commit comments

Comments
 (0)