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.
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.