OPT-111-Lot-FiscalLegis not mandatory in SDK but mandatory in XSD - notice 29 #903
-
Hi, I am currently creating notice 29. Field OPT-111-Lot-FiscalLegis is present there. Could you help me understand why it is not marked as mandatory in SDK, although XSD requires it during validation? SDK version 1.10.1 OPT-111-Lot-FiscalLegis As you can see in notice 29 it is neither forbidden nor mandatory. But when it comes to validation in this field is mandatory and whole validation fails.
Here is generated xml: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
This XML identifier is required by the XSD in the context of its parent element. It may not be marked as mandatory in the SDK as it would then require the presence of its parent element and other fields (OPT-110-Lot-FiscalLegis, OPT-301-Lot-FiscalLegis). this has to be addressed at XML generation; when further information about fiscal legislation is provided, then the identifier shall also exist, when no further information is provided, then the identifier should not be in the XML.