Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #18 #19

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
cat ./package.json | jq --arg MAIN $__MAIN_FILE '.main = $MAIN' > ./package.json.tmp
mv ./package.json.tmp ./package.json
cat ./package.json
- name: Create package.json & package-lock.json for client node package...
working-directory: ./dist/client-node
run: |
cat ./package.json | jq --arg VERSION $__OAS_VERSION '.version = $VERSION' > ./package.json.tmp
mv ./package.json.tmp ./package.json
cat ./package.json
npm i
- name: Publish yaml package to npmjs...
run: npm publish -access public
env:
Expand All @@ -58,4 +65,9 @@ jobs:
run: npm publish -access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: ./dist/dts
working-directory: ./dist/dts
- name: Publish client-node package to npmjs...
run: npm publish -access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: ./dist/dts
13 changes: 7 additions & 6 deletions .redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ apis:
rules:
no-unused-components: warn

features.openapi:
htmlTemplate: ./docs/index.html
theme:
colors:
primary:
main: "#32329f"
theme:
openapi:
htmlTemplate: ./docs/index.html
theme:
colors:
primary:
main: "#32329f"
Copy link
Contributor Author

@Ko1103 Ko1103 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix redoc command error

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Working on your OpenAPI Definition


## Prerequistites

- Node.js v18+
- Java (openjdk 17 was checked)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q:Java は何処で利用するですか?


### Install

1. Install [Node JS](https://nodejs.org/).
Expand Down
6 changes: 6 additions & 0 deletions openapi/paths/commands_{command}_{uid}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ post:
application/json:
schema:
$ref: ../components/schemas/CommandResult.yaml
responses:
200:
$ref: ../components/responses/CommandResponse.yaml
401:
$ref: ../components/responses/Unauthorized.yaml

Comment on lines +19 to +24
Copy link
Contributor Author

@Ko1103 Ko1103 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed error to pass openapi generate

10 changes: 10 additions & 0 deletions openapi/paths/sessions_{country_code}_{party_id}_{session_id}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ put:
- $ref: ../components/parameters/sessionId.yaml
requestBody:
$ref: ../components/requestBodies/Session.yaml
responses:
"200":
$ref: ../components/responses/SessionResponse.yaml
"401":
$ref: ../components/responses/Unauthorized.yaml
Comment on lines +35 to +39
Copy link
Contributor Author

@Ko1103 Ko1103 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed error to pass openapi generate


patch:
tags:
Expand All @@ -49,3 +54,8 @@ patch:
requestBody:
required: false
$ref: ../components/requestBodies/SessionPatch.yaml
responses:
"200":
$ref: ../components/responses/SessionResponse.yaml
"401":
$ref: ../components/responses/Unauthorized.yaml
Comment on lines +57 to +61
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed error to pass openapi generate

7 changes: 7 additions & 0 deletions openapitools.json
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file generated automatically

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.1.0"
}
}
Loading