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).
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
, theDuration
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?