mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
1547
document_test.go
1547
document_test.go
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user