Tags: pb33f/libopenapi
Tags
fix: use NewDocumentConfiguration() as default config in BuildV3Model When calling NewDocument() (without explicit configuration), BuildV3Model() was creating a bare DocumentConfiguration struct literal as the fallback. This meant all bool fields defaulted to false (Go zero values), causing TransformSiblingRefs and MergeReferencedProperties to be silently disabled. BuildV2Model() already correctly uses datamodel.NewDocumentConfiguration() as its fallback. This aligns BuildV3Model() to do the same, ensuring features like sibling $ref -> allOf transformation are enabled by default regardless of which NewDocument constructor is used. Fixes: #90 Co-authored-by: Cursor <cursoragent@cursor.com>
PreviousNext