-
Notifications
You must be signed in to change notification settings - Fork 10
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(deps): update dependency openapi-typescript to v7 #429
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has breaking changes
See also octokit/openapi-webhooks#68 |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
There are issues with the OpenAPI spec that is currently cached in this repo. There seems to be duplicate |
There are 4 routes to use the
This is still an issue in the latest spec over at https://github.com/octokit/openapi/blob/update/generated/ghes-3.12.json |
Raised the issue over in github/rest-api-description#3720 |
This PR contains the following updates:
^6.2.1
->^7.0.0
Release Notes
openapi-ts/openapi-typescript (openapi-typescript)
v7.0.0
Compare Source
Major Changes
6d1eb32
Thanks @drwpow! -transform()
andpostTransform()
. To migrate, you’ll have to use thetypescript
compiler API:Though it’s more verbose, it’s also more powerful, as now you have access to additional properties of the generated code you didn’t before (such as injecting comments).
For example syntax, search this codebae to see how the TypeScript AST is used.
Also see AST Explorer’s
typescript
parser to inspect how TypeScript is interpreted as an AST.6d1eb32
Thanks @drwpow! ---auth
,--httpHeaders
,--httpMethod
, andfetch
(Node.js-only) options were all removed from the CLI and Node.js API--immutable-types
has been renamed to--immutable
--support-array-length
has been renamed to--array-length
fbaf96d
Thanks @drwpow! -redocly.yaml
config. Specify multiple schemas with outputs in there instead. See Multiple schemas for more info.6d1eb32
Thanks @drwpow! -:never
. This includes keys of the Components Object as well as HTTP methods.6d1eb32
Thanks @drwpow! -external
export in schemas anymore. Everything gets flattened into thecomponents
object instead (if referencing a schema object from a remote partial, note it may have had a minor name change to avoid conflict).6d1eb32
Thanks @drwpow! -defaultNonNullable
option now defaults totrue
. You’ll now need to manually setfalse
to return to old behavior.799194d
Thanks @drwpow~ -openapi-typescript
Minor Changes
6d1eb32
Thanks @drwpow! - ✨ Feature: automatically validate schemas with Redocly CLI (docs). No more need for external tools to report errors! 🎉312b7ba
Thanks @drwpow! - ✨ Feature: allow configuration of schemas viaapis
key in redocly.config.yaml. See docs for more info.6d1eb32
Thanks @drwpow! - ✨ Feature: addenum
option to export top-level enums from schemas6d1eb32
Thanks @drwpow! - ✨ Feature: addformatOptions
to allow formatting TS output6d1eb32
Thanks @drwpow! - ✨ Feature: header responses add[key: string]: unknown
index type to allow for additional untyped headers6d1eb32
Thanks @drwpow! - ✨ Feature: bundle schemas with Redocly CLI6d1eb32
Thanks @drwpow! - ✨ Feature: Added debugger that lets you profile performance and see more in-depth messages#1374
7ac5174
Thanks @ElForastero! - Add support for x-enum-varnames and x-enum-descriptions#1545
9158b81
Thanks @jaredLunde! - Replace # characters in operation IDs with a slashPatch Changes
6d1eb32
Thanks @drwpow! - Refactor internals to use TypeScript AST rather than string mashing6d1eb32
Thanks @drwpow! - 🧹 Cleaned up and reorganized all tests#1602
9da96cd
Thanks @JeanRemiDelteil! - Do not add readonly on Typescript enum when the --immutable option is used.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.