-
I've got a couple of questions regarding the usage of the repeatable properties in the various json files.
Snippet of UBL-PriorInformationNotice-2.3.xsd <xsd:element ref="cbc:RegulatoryDomain" minOccurs="0" maxOccurs="unbounded"/> Snippet of fields.json {
"id" : "BT-01-notice",
"parentNodeId" : "ND-0",
"name" : "Procedure Legal Basis",
"btId" : "BT-01",
"xpathAbsolute" : "/*/cbc:RegulatoryDomain",
"xpathRelative" : "cbc:RegulatoryDomain",
"type" : "internal-code",
"legalType" : "CODE",
"repeatable" : {
"value" : false,
"severity" : "ERROR"
}
...
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @fpoort , Indeed, the repeatability information "belongs" only to the field metadata in fields.json. We are aware of the issue and we are in the process of rectifying it. The JSON files provided under notice-types up until SDK 0.6.x, are just a copy of the notice type definitions used by eNotices2, See the related section of the SDK documentation. The main goal of the upcoming eForms SDK 0.7.0 is to replace the notice type definitions with new versions that avoid several problems like the one you spotted. We are working to release it by July 8. For the 3rd point in your question, I will ask a colleague to get back to you with a separate answer. Thank you for bringing it to our attention. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi again @fpoort, This is to follow-up on the third point in your question about the apparent discrepancy between the cardinality of So here is the thing: I hope this covers you. In general, similar apparent "discrepancies" must exist for several other fields. For eForms, the correct definition is the one provided in Regards, |
Beta Was this translation helpful? Give feedback.
Hi again @fpoort,
This is to follow-up on the third point in your question about the apparent discrepancy between the cardinality of
cbc:RegulatoryDomain
(BT-01-notice
) infields.json
and in the schema.So here is the thing:
cbc:RegulatoryDomain
is a UBL element, that is being reused by eForms. UBL defines this asmaxOccurs="unbounded"
and that is why it appears like that in the schema. However, eFroms is not as permissive as UBL, sofields.json
restricts this field to one occurrence (not-repeatable).I hope this covers you. In general, similar apparent "discrepancies" must exist for several other fields. For eForms, the correct definition is the one provided in
fields.json
.Regards,
Yannis