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

generate facets and annotations with mappings #64

Open
amarant opened this issue Feb 19, 2016 · 4 comments
Open

generate facets and annotations with mappings #64

amarant opened this issue Feb 19, 2016 · 4 comments

Comments

@amarant
Copy link

amarant commented Feb 19, 2016

Hi,
it would be great if the mappings could transport the xsd facets : minLength, pattern (even if they are not fully compatible with JS regex), ..., like it does with minLength/maxLength; and the annotations. I use the mappings to introspect a schema set, and it is far easier to use than the xsd mapped in json with jsonix.
It could be optional to not add weight to the mappings.
Thanks.

@highsource
Copy link
Owner

Which ones do you need, specifically? I think many are already exported, which ones are you missing?

@amarant
Copy link
Author

amarant commented Feb 19, 2016

Currently there is no facets on the data type I though :
https://www.w3.org/TR/xmlschema-2/#rf-facets

  • length
  • minLength
  • maxLength
  • pattern
  • enumeration
  • whiteSpace
  • maxInclusive
  • maxExclusive
  • minExclusive
  • minInclusive
  • totalDigits
  • fractionDigits

There is only element restriction, like minOccurs and maxOccurs :
https://www.w3.org/TR/2001/REC-xmlschema-0-20010502/#ref6

@gmoyanollc
Copy link

gmoyanollc commented Feb 9, 2017

Is JAXB the reason why xs:annotation and simple type facets, e.g., as xs:pattern, xs:length, xs:enumeration, are missing?

It seems the Java community is hurting and JAXB may be another casualty as JavaScript is taking in droves of developers!

@mvlare
Copy link

mvlare commented Jul 21, 2020

Yes, i do see several similar other issue threads on missing facets minLength, maxLength, pattern. And i am also missing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants