Skip to content

String enum strategy #42

Open
Open
@garethsb

Description

@garethsb

To be considered by @AMWA-TV/nmos-architecture-review group and the NMOS Stream Mappings activity group:

Flow string attributes like profile and level have enumerated values that are open to extensibility for two reasons:

  • Adding support for a new media type with completely different acceptable values for these attributes
  • Adding new profiles and levels for existing media types, e.g. in amendments to existing standards as has happened for MPEG-2, MPEG-4, JPEG XS (see Proposed changes for BCP-006 #38 (comment))

The schemas included in the parameter register wouldn't be very useful if they allowed any string value for these attributes, so perhaps there's nothing we can do about the latter point, other than quickly update schemas when that happens?

It probably is possible to make the set of permitted enum values depend on the Flow media_type value, though that may need a more recent version of JSON Schema than draft-04?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions