-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Labels
JSON SchemaRespectRelated to the `respect` command which works with Arazzo specificationRelated to the `respect` command which works with Arazzo specificationType: BugSomething isn't workingSomething isn't workingp2
Description
Describe the bug
When the openapi specification grows and has a huge list that we need to distinguish between, I got the error Ajv error: Maximum call stack size exceeded while executing respect.
To Reproduce
- Using provided example run mock server and then run
redocly respect openapi.arazzo.yaml - Receive
Ajv error: Maximum call stack size exceeded
Expected behavior
Respect command executes successfully.
OpenAPI description
Provided archive.
Redocly version(s)
2.20.2
Node.js version(s)
24
OS, environment
macOs
Additional context
I investigated a little bit and when i comment discriminator: true in Ajv instance inside the file: packages/respect-core/src/modules/flow-runner/schema/schema-checker.ts i didn't receive an error.
One of our customer reported, that the error occurs when the number of enum values exceeds 126.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
JSON SchemaRespectRelated to the `respect` command which works with Arazzo specificationRelated to the `respect` command which works with Arazzo specificationType: BugSomething isn't workingSomething isn't workingp2
