Disclaimer: The contents of this E-mail plus any attachment is intended for the use of the addressee only and is confidential, proprietary and may be privileged. It will not be binding upon Trace Group or any group company (Trace). Opinions, conclusions, contractual
obligations and other information in this message in so far as they relate to the official business of Trace must be specifically confirmed in writing by Trace. If you are not the intended recipient you must not copy this message or attachment, use or disclose
the contents to any other person, but are requested to telephone or E-mail the sender and delete the message and any attachment from your system. Trace takes all reasonable precautions to ensure that no virus or defect is transmitted via this e mail, however
Trace accepts no responsibility for any virus or defect that might arise from opening this E-mail or attachments.
I have been looking at the Universal Business Language specification and the JSON schemas.
I found that some schemas that seemed invalid against the JSON schema specification 0.4 - 0.7.
I’ve summarized the encountered issues below. Just wanted to check if this is intended and if so, why? Else, we just wanted to let you know.
- Most of the schemas have a misplaced “additionalProperties” keyword.
- “additionalProperties” placed as child of “properties”, for example: file UBL-UnqualifiedDataTypes-2.1.json, line 207
- though not prohibited, the “additionalProperties” keyword for type “array” has no meaning. An example: file UBL-CreditNote-2.1.json, line 58
- The “format” keyword with value “date-time” is used together with a “pattern” keyword, but the pattern does not match a valid “date-time” format.
According to JSON Schema specification the date-time should comply to ISO 8601 and consist of:
But this will never match some of the patterns. For example:
File UBL-UnqualifiedDataTypes-2.1.json, at line 218, defines a property called “DateContent” and the “format” : ”date-time” keyword is used.
The regex pattern at line 226: ^-*[^T:-]+-[^T:]+$
will not allow the ISO 8601 date time, where the time part is required with ‘:’ separators.
Trace Financial Ltd.