Skip to content

Enum for "format" prop in DurationDatatypeType #161

@nsenave

Description

@nsenave

cf.

<xs:element name="Format" type="xs:token" minOccurs="0">

This format attribute has some specific valid values in Pogues use-case:

  • "PnYnM" for a year/month duration
  • "PTnHnM" for a hour/minute duration

An enum would be preferrable.


Note (for the record): this comes from some old xml standard: https://datypic.com/sc/xsd/t-xsd_duration.html

An other option would be to implement validation methods for this prop. But I think that would be overkill four our use-cases.

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