Keep the meaning of optional fields
How to ingest and retain nested records with optional fields while preserving metadata, labels, and references to AI and ML source content. · associate
A semi-structured record can contain nested objects, arrays, and optional fields. For example, {"id":"clip-7","metadata":{"language":"en"},"labels":["speech"]} keeps metadata together and represents labels as a list. Preserve those relationships during ingestion rather than turning every field into a string.
An absent field and an explicit null are different representations. An absent transcript field means the producer did not supply that field; "transcript":null means it supplied the field with a null value. The data contract must define their business meanings. Neither automatically means an empty transcript or a negative label.
Choose a contract with a small required core, such as a record identifier and schema version, while allowing documented optional fields. Validate a field's type when it is present, and do not fill missing labels with invented values.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.