Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueToXML with xsd restriction #164

Open
bmaschio opened this issue Dec 15, 2018 · 1 comment
Open

ValueToXML with xsd restriction #164

bmaschio opened this issue Dec 15, 2018 · 1 comment

Comments

@bmaschio
Copy link
Member

@jolie/developers

Recently I have been working with a specific XSD to create an electronic invoicing
In the XSD document, there are some definition like the example

<xs:simpleType name="Amount2DecimalType">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="[\-]?[0-9]{1,11}\.[0-9]{2}" />
    </xs:restriction>
  </xs:simpleType> 

in the current version of Jolie the trasformation of Decimal follow this rule: 10.20 becames 10.2 this creates a bit a problem with this particular application.
How would be a way to incorporate the pattern check in the ValueToXml operation
Thanks
Balint

@fmontesi fmontesi added this to Overview of issues and pull requests in Roadmap Jun 4, 2020
@mwallnoefer
Copy link
Member

This is not so easy, since according to the RegEx also a value like -000030.12 (prefix zeros) would be possible. Not sure if this is doable at the level of the valueToXml() call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Roadmap
  
Outstanding tasks (issues, PRs, etc.)
Development

No branches or pull requests

3 participants