Presume json type for Open API Arbitrary type

This commit is contained in:
Guangbo Chen 2021-01-08 17:28:38 +08:00
parent 0edf9c780f
commit 8891a7756b

View File

@ -107,6 +107,8 @@ func toField(schema proto.Schema) schemas.Field {
f.Type = sub.GetPath().String()
}
case *proto.Arbitrary:
logrus.Debugf("arbitrary type: %v", schema)
f.Type = "json"
default:
logrus.Errorf("unknown type: %v", schema)
f.Type = "json"