DO NOT SUBMIT SECURITY REPORTS HERE
If you have a security vulnerability, please report it following our security policy.
Bug Report
Amazing GitHub Template version:
2.4.0
Current behavior:
When the OpenAPI spec contains $ref pointing to external URLs
(e.g. $ref: 'https://raw.githubusercontent.com/...'), o2p crashes:
TypeError: Cannot read properties of undefined (reading '')
at findObject (refs.js:32)
Expected behavior:
Either support external $ref resolution, or show a clear error message
indicating they are not supported, instead of an unhandled crash.
Steps to reproduce:
- Use an OpenAPI spec with at least one $ref pointing to an external URL
- Run o2p with any config
- o2p crashes before generating any output
Related code:
src/parser/openapi3/refs.js:32
DO NOT SUBMIT SECURITY REPORTS HERE
If you have a security vulnerability, please report it following our security policy.
Bug Report
Amazing GitHub Template version:
2.4.0
Current behavior:
When the OpenAPI spec contains $ref pointing to external URLs
(e.g. $ref: 'https://raw.githubusercontent.com/...'), o2p crashes:
TypeError: Cannot read properties of undefined (reading '')
at findObject (refs.js:32)
Expected behavior:
Either support external $ref resolution, or show a clear error message
indicating they are not supported, instead of an unhandled crash.
Steps to reproduce:
Related code:
src/parser/openapi3/refs.js:32