InseeFr / Lunatic-Model

Data model for Lunatic
MIT License
1 stars 10 forks source link

Duration component #214

Closed nsenave closed 6 months ago

nsenave commented 6 months ago

Spec

The Duration component has the properties of a simple response component, plus a "format" property that is a string, which describes the duration format in the XSD duration style (see below).

Unlike Datepicker, the Duration component doesn't have "min" and "max" properties (at least for now).

Example from Lunatic-DSFR

Some resources on the XSD Duration format.

NB : do we have a concrete reason to use this format, instead of whatever allowed values that would be defined by an enum?

nsenave commented 6 months ago

Format implemented as an enum (with serialized values that follow the xsd style)