...
Code Block |
---|
{ "namespace": "la.dp.avro", "type": "record", "name": "OriginalRecord.v1", "doc": <DOCUMENTATION>, "fields": [ {"name": "id", "type": "string"}, {"name": "provider", "type": "string"}, {"name": "document", "type": "string"}, {"name": "mimetype", "type": {"name": "MimeType", "type": "enum", "symbols": ["application/_json", "application/_xml", "text/_turtle"]}} ] } |
Note that we will have to translate "_" characters in the mimetype
field into "/" characters in our code. The "/" character is not allowed within an enum
symbol in an Avro schema.
la.dp.avro.MAP.4_0.MAPRecord.v1
...