Skip to content

chore: make wasm work#8

Open
ThomasRooney wants to merge 5 commits into
fix/expose-referencee-componentsfrom
chore/wasm-libopenapi
Open

chore: make wasm work#8
ThomasRooney wants to merge 5 commits into
fix/expose-referencee-componentsfrom
chore/wasm-libopenapi

Conversation

@ThomasRooney

Copy link
Copy Markdown
Member

No description provided.

ThomasRooney and others added 5 commits April 10, 2025 08:35
A property $ref pointing at a ref-to-ref alias chain inside a reference
cycle leaves a SchemaProxy whose Schema() returns nil. CompareSchemas
hashed that nil schema in the inline<->ref branches and dereferenced it
in the deep-compare walk, crashing with a nil-receiver SIGSEGV in
Schema.Hash(). Treat an unresolvable proxy as a modification instead,
and make Schema.Hash() nil-safe as a backstop.

GEN-3129

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Both inline<->ref branches carried a verbatim copy of the resolve-and-
compare guard; extracting it keeps the two directions symmetric by
construction.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…g-panics-nil-schemahash-on-recursive-31

fix: nil-guard SchemaProxy.Schema() results in CompareSchemas (GEN-3129)
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.

3 participants