-
-
Notifications
You must be signed in to change notification settings - Fork 529
TypeError: schemaObject.required?.includes is not a function #1931
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
Comments
I'm having the same issue, any news on this ? |
Same here |
I have the same problem with the same Node.js version.
|
Make sure all of your https://swagger.io/docs/specification/v3_0/data-models/data-types/#objects Note the
|
@NDSo The schemas are correctly defined, and the issue seems to be specific to the Node.js version. It works as expected with Node.js 20.11.1 but does not work with Node.js 22.11.0. This might be related to the use of whatwg-url, as discussed here: Here’s the dependency tree for whatwg-url in my setup:
|
No more errors after the release of the new version 7.6.1 with the updated |
Fixed in #2131 |
Description
Getting
TypeError: schemaObject.required?.includes is not a function
when trying to generate types from ajson
OpenAPI 3.0 specopenapi-typescript
7.4.1
22.1.0
macOS 14.4.1
Reproduction
npx openapi-typescript https://docs.moov.io/openapi/openapi.json -o ./lib/_generated-types/types.ts
Expected result
No errors, .ts file generated under
lib/_generated-types
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: