Skip to content

Commit

Permalink
[OpenAPI] fix OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Aug 21, 2024
1 parent 751f108 commit 90f35d5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions zou/app/blueprints/shots/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

from zou.app.mixin import ArgsMixin
from zou.app.utils import fields, query, permissions
from zou.app.services.exception import WrongParameterException
from zou.app.services.exception import (
WrongParameterException,
ArgumentsException,
)


class ShotResource(Resource, ArgsMixin):
Expand Down Expand Up @@ -62,10 +65,10 @@ def put(self, shot_id):
type: string
format: UUID
x-example: a24a6ea4-ce75-4665-a070-57453082c25
- in: body
- in: body
name: data
required: True
type: object
type: object
responses:
200:
description: Update given shot
Expand All @@ -88,7 +91,7 @@ def put(self, shot_id):
"entities_out",
"type",
"shotgun_id",
"created_by"
"created_by",
]:
data.pop(field, None)

Expand Down

0 comments on commit 90f35d5

Please sign in to comment.