From a99f796dd159204dae749019109686f048908567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Thu, 20 Jun 2024 07:40:00 +0200 Subject: [PATCH] fix(specs): update discover endpoint (#3212) --- specs/ingestion/common/schemas/source.yml | 2 +- specs/ingestion/paths/sources/discover.yml | 46 +------------------- specs/ingestion/paths/sources/validate.yml | 2 +- specs/ingestion/paths/sources/validateID.yml | 2 +- 4 files changed, 4 insertions(+), 48 deletions(-) diff --git a/specs/ingestion/common/schemas/source.yml b/specs/ingestion/common/schemas/source.yml index 21ade93348..74d731e909 100644 --- a/specs/ingestion/common/schemas/source.yml +++ b/specs/ingestion/common/schemas/source.yml @@ -525,7 +525,7 @@ sourceShopifyBase: x-discriminator-fields: - shopURL -SourceValidateResponse: +SourceWatchResponse: type: object additionalProperties: false properties: diff --git a/specs/ingestion/paths/sources/discover.yml b/specs/ingestion/paths/sources/discover.yml index 0d63dc2293..4a66698601 100644 --- a/specs/ingestion/paths/sources/discover.yml +++ b/specs/ingestion/paths/sources/discover.yml @@ -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 @@ -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' diff --git a/specs/ingestion/paths/sources/validate.yml b/specs/ingestion/paths/sources/validate.yml index 45420d3dbf..dd3ede67ea 100644 --- a/specs/ingestion/paths/sources/validate.yml +++ b/specs/ingestion/paths/sources/validate.yml @@ -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' diff --git a/specs/ingestion/paths/sources/validateID.yml b/specs/ingestion/paths/sources/validateID.yml index 0a1cc499fc..c00f89502f 100644 --- a/specs/ingestion/paths/sources/validateID.yml +++ b/specs/ingestion/paths/sources/validateID.yml @@ -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'