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: format for orval package options #1450

Merged
merged 2 commits into from
Jun 11, 2024
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
6 changes: 4 additions & 2 deletions packages/orval/src/utils/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ export const normalizeOptions = async (
}
: {}),
},
generateEachHttpStatus: outputOptions.override?.zod?.generateEachHttpStatus ?? false,
generateEachHttpStatus:
outputOptions.override?.zod?.generateEachHttpStatus ?? false,
},
swr: {
...(outputOptions.override?.swr ?? {}),
Expand Down Expand Up @@ -464,7 +465,8 @@ const normalizeOperationsAndTags = (
}
: {}),
},
generateEachHttpStatus: zod?.generateEachHttpStatus ?? false,
generateEachHttpStatus:
zod?.generateEachHttpStatus ?? false,
},
}
: {}),
Expand Down
54 changes: 27 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -880,23 +880,23 @@ __metadata:
languageName: node
linkType: hard

"@orval/angular@npm:6.29.1, @orval/angular@workspace:packages/angular":
"@orval/angular@npm:6.30.2, @orval/angular@workspace:packages/angular":
version: 0.0.0-use.local
resolution: "@orval/angular@workspace:packages/angular"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
languageName: unknown
linkType: soft

"@orval/axios@npm:6.29.1, @orval/axios@workspace:packages/axios":
"@orval/axios@npm:6.30.2, @orval/axios@workspace:packages/axios":
version: 0.0.0-use.local
resolution: "@orval/axios@workspace:packages/axios"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
languageName: unknown
linkType: soft

"@orval/core@npm:6.29.1, @orval/core@workspace:packages/core":
"@orval/core@npm:6.30.2, @orval/core@workspace:packages/core":
version: 0.0.0-use.local
resolution: "@orval/core@workspace:packages/core"
dependencies:
Expand Down Expand Up @@ -934,60 +934,60 @@ __metadata:
languageName: unknown
linkType: soft

"@orval/fetch@npm:6.29.1, @orval/fetch@workspace:packages/fetch":
"@orval/fetch@npm:6.30.2, @orval/fetch@workspace:packages/fetch":
version: 0.0.0-use.local
resolution: "@orval/fetch@workspace:packages/fetch"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
languageName: unknown
linkType: soft

"@orval/hono@npm:6.29.1, @orval/hono@workspace:packages/hono":
"@orval/hono@npm:6.30.2, @orval/hono@workspace:packages/hono":
version: 0.0.0-use.local
resolution: "@orval/hono@workspace:packages/hono"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/zod": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
"@orval/zod": "npm:6.30.2"
"@types/lodash.uniq": "npm:^4.5.7"
lodash.uniq: "npm:^4.5.0"
languageName: unknown
linkType: soft

"@orval/mock@npm:6.29.1, @orval/mock@workspace:packages/mock":
"@orval/mock@npm:6.30.2, @orval/mock@workspace:packages/mock":
version: 0.0.0-use.local
resolution: "@orval/mock@workspace:packages/mock"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
lodash.get: "npm:^4.4.2"
lodash.omit: "npm:^4.5.0"
openapi3-ts: "npm:^4.2.2"
languageName: unknown
linkType: soft

"@orval/query@npm:6.29.1, @orval/query@workspace:packages/query":
"@orval/query@npm:6.30.2, @orval/query@workspace:packages/query":
version: 0.0.0-use.local
resolution: "@orval/query@workspace:packages/query"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
"@types/lodash.omitby": "npm:^4.6.7"
lodash.omitby: "npm:^4.6.0"
vitest: "npm:^0.34.6"
languageName: unknown
linkType: soft

"@orval/swr@npm:6.29.1, @orval/swr@workspace:packages/swr":
"@orval/swr@npm:6.30.2, @orval/swr@workspace:packages/swr":
version: 0.0.0-use.local
resolution: "@orval/swr@workspace:packages/swr"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
languageName: unknown
linkType: soft

"@orval/zod@npm:6.29.1, @orval/zod@workspace:packages/zod":
"@orval/zod@npm:6.30.2, @orval/zod@workspace:packages/zod":
version: 0.0.0-use.local
resolution: "@orval/zod@workspace:packages/zod"
dependencies:
"@orval/core": "npm:6.29.1"
"@orval/core": "npm:6.30.2"
"@types/lodash.uniq": "npm:^4.5.7"
lodash.uniq: "npm:^4.5.0"
languageName: unknown
Expand Down Expand Up @@ -6807,15 +6807,15 @@ __metadata:
resolution: "orval@workspace:packages/orval"
dependencies:
"@apidevtools/swagger-parser": "npm:^10.1.0"
"@orval/angular": "npm:6.29.1"
"@orval/axios": "npm:6.29.1"
"@orval/core": "npm:6.29.1"
"@orval/fetch": "npm:6.29.1"
"@orval/hono": "npm:6.29.1"
"@orval/mock": "npm:6.29.1"
"@orval/query": "npm:6.29.1"
"@orval/swr": "npm:6.29.1"
"@orval/zod": "npm:6.29.1"
"@orval/angular": "npm:6.30.2"
"@orval/axios": "npm:6.30.2"
"@orval/core": "npm:6.30.2"
"@orval/fetch": "npm:6.30.2"
"@orval/hono": "npm:6.30.2"
"@orval/mock": "npm:6.30.2"
"@orval/query": "npm:6.30.2"
"@orval/swr": "npm:6.30.2"
"@orval/zod": "npm:6.30.2"
"@types/inquirer": "npm:^9.0.6"
"@types/js-yaml": "npm:^4.0.8"
"@types/lodash.uniq": "npm:^4.5.8"
Expand Down