Skip to content

Commit

Permalink
fix(specs): update discover endpoint (#3212)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jun 20, 2024
1 parent 65775e4 commit a99f796
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 48 deletions.
2 changes: 1 addition & 1 deletion specs/ingestion/common/schemas/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ sourceShopifyBase:
x-discriminator-fields:
- shopURL

SourceValidateResponse:
SourceWatchResponse:
type: object
additionalProperties: false
properties:
Expand Down
46 changes: 1 addition & 45 deletions specs/ingestion/paths/sources/discover.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
get:
tags:
- sources
summary: Retrieve a stream listing
description: |
Retrieves a stream listing for a source.
Listing streams only works with sources with `type: docker` and `imageType: singer`.
operationId: getDockerSourceStreams
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathSourceID'
responses:
'200':
description: OK
content:
application/json:
schema:
title: dockerSourceStreams
type: object
additionalProperties: false
properties:
streams:
type: array
items:
$ref: '../../common/schemas/source.yml#/DockerSourceStream'
required:
- streams
'400':
$ref: '../../../common/responses/BadRequest.yml'

post:
tags:
- sources
Expand All @@ -52,16 +18,6 @@ post:
content:
application/json:
schema:
title: dockerSourceDiscover
type: object
additionalProperties: false
properties:
runID:
$ref: '../../common/schemas/common.yml#/runID'
createdAt:
$ref: '../../common/schemas/common.yml#/createdAt'
required:
- runID
- createdAt
$ref: '../../common/schemas/source.yml#/SourceWatchResponse'
'400':
$ref: '../../../common/responses/BadRequest.yml'
2 changes: 1 addition & 1 deletion specs/ingestion/paths/sources/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ post:
content:
application/json:
schema:
$ref: '../../common/schemas/source.yml#/SourceValidateResponse'
$ref: '../../common/schemas/source.yml#/SourceWatchResponse'
'400':
$ref: '../../../common/responses/BadRequest.yml'
2 changes: 1 addition & 1 deletion specs/ingestion/paths/sources/validateID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ post:
content:
application/json:
schema:
$ref: '../../common/schemas/source.yml#/SourceValidateResponse'
$ref: '../../common/schemas/source.yml#/SourceWatchResponse'
'400':
$ref: '../../../common/responses/BadRequest.yml'

1 comment on commit a99f796

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.