Skip to content

Commit

Permalink
Fix HTTP status code and response
Browse files Browse the repository at this point in the history
  • Loading branch information
reesercollins committed Jun 30, 2022
1 parent 7e3a462 commit dc5594b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions superset/datasets/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,15 +536,17 @@ def duplicate(self) -> Response:
schema:
$ref: '#/components/schemas/DatasetDuplicateSchema'
responses:
200:
description: Dataset duplicate
201:
description: Dataset duplicated
content:
application/json:
schema:
type: object
properties:
message:
type: string
id:
type: number
result:
$ref: '#/components/schemas/DatasetDuplicateSchema'
400:
$ref: '#/components/responses/400'
401:
Expand Down

0 comments on commit dc5594b

Please sign in to comment.