Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@hey-api/openapi-ts@0.78.0
Minor Changes
#2246
a11a8c5
Thanks @mrlubos! - feat(config): addparser
optionsAdded
parser
optionsPreviously,
@hey-api/typescript
would generate correct types, but the validator plugins would have to re-implement the same logic or generate schemas that didn't match the generated types.Since neither option was ideal, this release adds a dedicated place for
parser
options. Parser is responsible for preparing the input so plugins can generate more accurate output with less effort.You can learn more about configuring parser on the Parser page.
Moved
input
optionsThe following options were moved to the new
parser
group.input.filters
moved toparser.filters
input.pagination
moved toparser.pagination
input.patch
moved toparser.patch
input.validate_EXPERIMENTAL
moved toparser.validate_EXPERIMENTAL
Updated
typescript
optionsThe following options were renamed.
enumsCase
moved toenums.case
enumsConstantsIgnoreNull
moved toenums.constantsIgnoreNull
Moved
typescript
optionsThe following options were moved to the new
parser
group.exportInlineEnums
moved toparser.transforms.enums
readOnlyWriteOnlyBehavior
moved toparser.transforms.readWrite.enabled
readableNameBuilder
moved toparser.transforms.readWrite.responses.name
writableNameBuilder
moved toparser.transforms.readWrite.requests.name
Updated
readWrite.responses
nameAdditionally, the naming pattern for response schemas has changed from
{name}Readable
to{name}
. This is to prevent your code from breaking by default when using a schema that gets updated with a write-only field.Patch Changes
d901bd5
Thanks @mrlubos! - fix(config): addoperations
option toparser.patch