Consistently use json.RawMessage

This commit is contained in:
Simon Ser 2023-02-24 17:01:53 +01:00
parent 221c18e60a
commit e0d73b5371

View file

@ -161,7 +161,7 @@ func unwrapNullableSchema(schema *jsonschema.Schema) (*jsonschema.Schema, bool)
func generateSchemaType(schema *jsonschema.Schema, root *jsonschema.Schema, required bool) jen.Code {
if schema == nil {
return jen.Interface()
schema = &jsonschema.Schema{}
}
refName := refName(schema.Ref)