blw-ofag-ufag / eCH-0261

eCH-0261 -- Agrardaten - Betriebs- und Unternehmensstammdaten
1 stars 0 forks source link

personFunctionType restriction #11

Closed AFoletti closed 7 months ago

AFoletti commented 9 months ago

personFunction-Code in personFunctionType is an xs:token with xs:maxLength value="6" Is it intended to leave this element open to more or less anything up to 6 characters? By looking at the documentation (PDF page 28) I am under the impression that:

  1. we should limit this to digits
  2. Actually, we should limit this to 6 digits, since higher hierarchical levels do not always make much sense in the context of this list (example: 0100 Andere (digiFLUX) may be OK, but 0201 Agrarsektordaten probably is not OK since is not really a role a person can have).

Number 2 would however need a refactoring of the list...

https://github.com/blw-ofag-ufag/eCH-0261/blob/77843b9bf5c415a735d5ad6c23ba4a1f1bc2b902/src/eCH-0261-1-0.xsd#L542

Open for discussion 😄

lars-steffen commented 7 months ago

it was decided to leave the number of digits open (1 - 50)

lars-steffen commented 7 months ago

fixed with #23