| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
A oneOf with a single $ref queues the referenced model for processing a second time, so its inline models are built twice and the second build fails as a duplicate class name. Reuse the existing class when the same schema is built again under the same name.
An allOf whose parts are all values, such as a reference to an enum plus `enum: [ONE_VALUE]`, was built as a model and failed with "Cannot take allOf a non-object". Merge its parts with merge_properties, as allOf already does for model properties.
| Back | FazBrowse Home | New Git URL |
Fixes #1498 and #1375.
Two schema shapes that currently fail to generate:
To be upfront: an AI agent (Claude) wrote this while I was debugging our own spec. I've checked that it fixes our spec (about 220 endpoints) and the small examples in the linked issues. The existing tests give the same results with and without the change on my machine. There are no new tests yet, so this can't merge as is. It's a draft to show the approach.