mirror of
https://github.com/niusmallnan/steve.git
synced 2025-06-05 12:51:50 +00:00
Presume json type for Open API Arbitrary type
This commit is contained in:
parent
0edf9c780f
commit
8891a7756b
@ -107,6 +107,8 @@ func toField(schema proto.Schema) schemas.Field {
|
|||||||
f.Type = sub.GetPath().String()
|
f.Type = sub.GetPath().String()
|
||||||
}
|
}
|
||||||
case *proto.Arbitrary:
|
case *proto.Arbitrary:
|
||||||
|
logrus.Debugf("arbitrary type: %v", schema)
|
||||||
|
f.Type = "json"
|
||||||
default:
|
default:
|
||||||
logrus.Errorf("unknown type: %v", schema)
|
logrus.Errorf("unknown type: %v", schema)
|
||||||
f.Type = "json"
|
f.Type = "json"
|
||||||
|
Loading…
Reference in New Issue
Block a user