-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The json metadata encoding in #491 can be inefficient for larger scale work. It should be possible to use struct to encode the metadata with a schema that looks like:
{
"type": "object",
"properties": {
"accession_number": {"type": "number", "format":"L", "index":0},
"collection_date": {
"type": "string",
"format": "10s",
"index":1,
"pattern": "^([1-9][0-9]{3})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])?$"
},
},
}Note the additional format and index keys that specify how to encode the metadata. The code would traverse the schema constructing a format string for struct using index as JSON objects are unordered. Note that we should stick to little-endian rather than letting struct decide.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request