Open georgesfarah opened 1 month ago
Can't get types of enums, it's nil. Currently I'm using this workaround to get the types:
for pair := orderedmap.First(schema.Properties); pair != nil; pair = pair.Next() { Type := "" if pair.Value().Schema().Type != nil { Type = pair.Value().Schema().Type[0] } else if pair.Value().Schema().Enum != nil { valueType := reflect.TypeOf(pair.Value().Schema().Enum[0].Value) Type = valueType.String() } }
Can you provide a sample specification snippet please?
Can't get types of enums, it's nil. Currently I'm using this workaround to get the types: