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

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

@phantomjinx

Description

@phantomjinx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions