Skip to content

Commit

Permalink
fix: fix client-gen script and openapi schema (#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusefnapora authored Feb 21, 2022
1 parent 927c9a3 commit 3aaf9d1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/website/public/schema.yml \
-i /local/packages/website/public/schema.yml \
-g ruby \
--api-name-suffix=API \
--git-user-id=nftstorage \
Expand All @@ -20,7 +20,7 @@ docker run --rm \

docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/website/public/schema.yml \
-i /local/packages/website/public/schema.yml \
-g go \
--api-name-suffix=API \
--git-user-id=nftstorage \
Expand All @@ -32,7 +32,7 @@ docker run --rm \

docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/website/public/schema.yml \
-i /local/packages/website/public/schema.yml \
-g python \
--api-name-suffix=API \
--git-user-id=nftstorage \
Expand All @@ -45,7 +45,7 @@ docker run --rm \

docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/website/public/schema.yml \
-i /local/packages/website/public/schema.yml \
-g rust \
--api-name-suffix=API \
--git-user-id=nftstorage \
Expand All @@ -57,7 +57,7 @@ docker run --rm \

docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/website/public/schema.yml \
-i /local/packages/website/public/schema.yml \
-g php \
--api-name-suffix=API \
--git-user-id=nftstorage \
Expand All @@ -70,7 +70,7 @@ docker run --rm \

docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/website/public/schema.yml \
-i /local/packages/website/public/schema.yml \
-g java \
--git-user-id=nftstorage \
--git-repo-id=java-client \
Expand Down
15 changes: 15 additions & 0 deletions packages/website/public/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@ paths:
additionalProperties:
type: string
format: binary
responses:
'200':
description: OK
content:
'application/json':
schema:
$ref: '#/components/schemas/UploadResponse'
'400':
$ref: '#/components/responses/badRequest'
'401':
$ref: '#/components/responses/unauthorized'
'403':
$ref: '#/components/responses/forbidden'
'500':
$ref: '#/components/responses/internalServerError'

/upload:
post:
Expand Down

0 comments on commit 3aaf9d1

Please sign in to comment.