-
Notifications
You must be signed in to change notification settings - Fork 9k
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
OpenAPI 3.1.0 support: RangeError: Maximum call stack size exceeded #8537
Comments
This is an issue with ApiDOM, which is used by swagger-client that facilitates OpenAPI 3.1.0 dereference for the SwaggerUI. It seems that all the cycles haven't been eliminated in swagger-client which resulted in error in transducer. Transducer can only handle acyclic directed graphs. |
Minimal reproducible fixture is this one: {
"openapi": "3.1.0",
"components": {
"schemas": {
"PlatformMenuTreeNode": {
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PlatformMenuTreeNode"
}
},
"resources": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PlatformMenuTreeResourceNode"
}
}
}
},
"PlatformMenuTreeResourceNode": {
"properties": {
"id": {
"type": "integer",
"format": "int64",
"description": "ID"
}
}
}
}
}
} |
Fix provided upstream as https://github.com/swagger-api/apidom/releases/tag/v0.69.2 |
Fix provided upstream as https://github.com/swagger-api/swagger-js/releases/tag/v3.19.6 |
The fix comes from updating the swagger-client to v3.19.6. Refs #8537
Fixed in SwaggerUI - https://github.com/swagger-api/swagger-ui/releases/tag/v5.0.0-alpha.6. The SwaggerEditor@5 integration will follow during today. |
The issue was re-introduced by #8616. Before the change we resolved the entire |
Addressed in swagger-api/swagger-js#2970 |
Verified locally that the bug is gone after using swagger-client@3.19.8 (with swagger-api/swagger-js#2970 included). |
Will be available in next SwaggerUI@5 release. |
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
# your YAML here
Swagger-UI configuration options:
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
Expected behavior
show the request and response
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered: