Skip to content

Commit

Permalink
feat: switch image type to image/* (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras authored Feb 9, 2024
1 parent fd40593 commit ea0c39d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
38 changes: 9 additions & 29 deletions src/main/openapi/onecx-image-internal-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,10 @@ paths:
requestBody:
required: true
content:
image/x-icon:
image/*:
schema:
minLength: 1
type: string
format: binary
image/png:
schema:
minLength: 1
type: string
format: binary
image/jpg:
schema:
minLength: 1
minimum: 1
maximum: 20000
type: string
format: binary
responses:
Expand Down Expand Up @@ -79,12 +70,10 @@ paths:
"200":
description: OK
content:
image/png:
schema:
type: string
format: binary
image/jpg:
image/*:
schema:
minimum: 1
maximum: 20000
type: string
format: binary
"400":
Expand Down Expand Up @@ -118,19 +107,10 @@ paths:
requestBody:
required: true
content:
image/x-icon:
schema:
minLength: 1
type: string
format: binary
image/png:
schema:
minLength: 1
type: string
format: binary
image/jpg:
image/*:
schema:
minLength: 1
minimum: 1
maximum: 20000
type: string
format: binary
responses:
Expand Down
5 changes: 3 additions & 2 deletions src/main/openapi/onecx-theme-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ paths:
200:
description: OK
content:
image/x-icon:
image/*:
schema:
minLength: 1
minimum: 1
maximum: 20000
type: string
format: binary
404:
Expand Down

0 comments on commit ea0c39d

Please sign in to comment.