Skip to content

Prevent panics on malformed documents and circular refs - #32

Open
Jefftree wants to merge 1 commit into
google:mainfrom
Jefftree:fix-panics-minimal
Open

Jefftree wants to merge 1 commit into
google:mainfrom
Jefftree:fix-panics-minimal

Conversation

@Jefftree

@Jefftree Jefftree commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Rejects empty documents, invalid reference URLs, and YAML sequence nodes where mappings are expected while preserving array-form schema items, and bounds active reference resolution across OpenAPI v2, OpenAPI v3, and Discovery so circular or amplified references return an error instead of crashing.

Fixes #31

@Jefftree Jefftree changed the title compiler: prevent panics on sequence nodes and circular refs Prevent panics on malformed documents and circular refs Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openapiv2/openapiv3 ParseDocument panics when the document root is a sequence

1 participant