Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

JaxbAnnotationIntrospector does not pick up 'required' property of @XmlAttribute #47

Closed
phantomjinx opened this issue Aug 31, 2015 · 1 comment
Milestone

Comments

@phantomjinx
Copy link

While converting jaxb annotated classes into a JsonSchema, I noticed that attributes with the @XmlAttribute(required = true) annotation are included in the latter schema but do not respect the required property. Debugging the JaxbAnnotationIntrospector, I noticed that hasRequiredMarker() only looks for the @xmlelement annotation and not the @XmlAttribute annotation, despite the latter being checked by this method.

@cowtowncoder
Copy link
Member

Good catch, thank you for reporting it. I'll have a look.

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

No branches or pull requests

2 participants