Closed rubberduck203 closed 3 years ago
The JSON Schema required keyword is a list of strings that defines properties (fields) that must be present.
required
If a property is required, the AVRO type for that field can be the simple type.
{ "type": "record", "name": "schema", "fields": [ { "name": "title", "type": "string" } ] }
If it is not required, the AVRO type must be a union of null/type with a default of null.
{ "type": "record", "name": "schema", "fields": [ { "name": "title", "type": ["null", "string"] "default": null } ] }
Depends on #20
The JSON Schema
required
keyword is a list of strings that defines properties (fields) that must be present.If a property is required, the AVRO type for that field can be the simple type.
If it is not required, the AVRO type must be a union of null/type with a default of null.