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

chore(release): 0.12.0 #68

Merged
merged 6 commits into from
Nov 7, 2020
Merged
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
7 changes: 5 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12, 14]
os: [windows-latest, ubuntu-latest]
node-version: [10, 12, 14]
os: [ubuntu-latest]
include:
- os: windows-latest
node-version: 14
steps:
- uses: actions/checkout@v2
- name: setup Node.js ${{ matrix.node-version }}
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [0.12.0](https://github.com/aspida/openapi2aspida/compare/v0.11.0...v0.12.0) (2020-11-07)


### Features

* update [email protected] ([e95a13b](https://github.com/aspida/openapi2aspida/commit/e95a13bd720651a78dfbf42c7ceb1d1f14e297c9))


### Bug Fixes

* convert allOf/oneOf/anyOf ([7cccbfb](https://github.com/aspida/openapi2aspida/commit/7cccbfb6fd75c29ddc4e16067c359120f2fb8763))

## [0.11.0](https://github.com/aspida/openapi2aspida/compare/v0.10.1...v0.11.0) (2020-09-02)


Expand Down
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openapi2aspida",
"version": "0.11.0",
"version": "0.12.0",
"description": "Convert OpenAPI 3.0 or Swagger 2.0 definitions into aspida",
"author": "Solufa <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -36,11 +36,6 @@
"openapi",
"swagger"
],
"dependencies": {
"aspida": "^0.21.0",
"swagger-parser": "^10.0.1",
"swagger2openapi": "^7.0.0"
},
"eslintConfig": {
"env": {
"es6": true,
Expand Down Expand Up @@ -89,25 +84,31 @@
}
]
},
"dependencies": {
"aspida": "^0.22.2",
"openapi-types": "^7.0.1",
"swagger-parser": "^10.0.2",
"swagger2openapi": "^7.0.3"
},
"devDependencies": {
"@types/jest": "^26.0.13",
"@types/jest": "^26.0.15",
"@types/js-yaml": "^3.12.5",
"@types/minimist": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.20.0",
"@typescript-eslint/eslint-plugin": "^4.6.1",
"@typescript-eslint/parser": "^4.6.1",
"eslint": "^7.12.1",
"eslint-config-prettier": "^6.15.0",
"eslint-config-standard": "^16.0.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"jest": "^26.4.2",
"prettier": "^2.1.1",
"eslint-plugin-standard": "^4.0.2",
"jest": "^26.6.3",
"prettier": "^2.1.2",
"standard-version": "^9.0.0",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
"ts-jest": "^26.4.3",
"typescript": "^4.0.5"
}
}
2 changes: 1 addition & 1 deletion samples/externals/$api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const api = <T>({ baseURL, fetch }: AspidaClient<T>) => {
$get: (option?: { query?: Methods0['get']['query'], config?: T }) =>
fetch<Methods0['get']['resBody'], Methods0['get']['resHeaders'], Methods0['get']['status']>(prefix, `${prefix0}${PATH1}`, GET, option).json().then(r => r.body),
$path: (option?: { method?: 'get'; query: Methods0['get']['query'] }) =>
`${prefix}${prefix0}${PATH1}${option?.query ? `?${dataToURLString(option.query)}` : ''}`
`${prefix}${prefix0}${PATH1}${option && option.query ? `?${dataToURLString(option.query)}` : ''}`
},
phone_numbers: {
_phone_number: (val2: string) => {
Expand Down
2 changes: 1 addition & 1 deletion samples/externals/users/$api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const api = <T>({ baseURL, fetch }: AspidaClient<T>) => {
$get: (option?: { query?: Methods0['get']['query'], config?: T }) =>
fetch<Methods0['get']['resBody'], Methods0['get']['resHeaders'], Methods0['get']['status']>(prefix, `${prefix0}${PATH1}`, GET, option).json().then(r => r.body),
$path: (option?: { method?: 'get'; query: Methods0['get']['query'] }) =>
`${prefix}${prefix0}${PATH1}${option?.query ? `?${dataToURLString(option.query)}` : ''}`
`${prefix}${prefix0}${PATH1}${option && option.query ? `?${dataToURLString(option.query)}` : ''}`
},
phone_numbers: {
_phone_number: (val2: string) => {
Expand Down
100 changes: 50 additions & 50 deletions samples/freee/$api.ts

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions samples/freee/@types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1165,13 +1165,17 @@ export type forbiddenError = {
export type badRequestError = {
status_code?: number
errors?: {
messages: Partial<string[] & string>

type: 'status' | 'validation' | 'error'
}[]
}

export type badRequestNotFoundError = {
status_code?: number
errors?: {
messages: Partial<string[] & string>

type: 'status' | 'validation' | 'error'
}[]
}
Expand All @@ -1190,6 +1194,8 @@ export type tooManyRequestsError = {
export type internalServerError = {
status_code?: number
errors?: {
messages: Partial<string[] & string>

type: 'status' | 'validation' | 'error'
}[]
}
Expand Down
Loading