Added in high level schema type ref #215

Missed capturing the high level schema. Added test to document to capture use case permanently.

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-12-18 10:35:00 -05:00
parent 9cf06d3986
commit 0b7f809ac6
2 changed files with 793 additions and 757 deletions

View File

@@ -113,6 +113,9 @@ func NewSchema(schema *base.Schema) *Schema {
s := new(Schema)
s.low = schema
s.Title = schema.Title.Value
if !schema.SchemaTypeRef.IsEmpty() {
s.SchemaTypeRef = schema.SchemaTypeRef.Value
}
if !schema.MultipleOf.IsEmpty() {
s.MultipleOf = &schema.MultipleOf.Value
}

File diff suppressed because it is too large Load Diff