https://github.com/digipost/jaxb2-jackson-helper
Plugin to add @XmlElement(nillable=false) if nillable=false and minoccurs=0 is set in XSD.
https://github.com/digipost/jaxb2-jackson-helper
Last synced: about 2 months ago
JSON representation
Plugin to add @XmlElement(nillable=false) if nillable=false and minoccurs=0 is set in XSD.
- Host: GitHub
- URL: https://github.com/digipost/jaxb2-jackson-helper
- Owner: digipost
- License: apache-2.0
- Created: 2017-11-20T15:01:20.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T09:57:07.000Z (over 1 year ago)
- Last Synced: 2025-01-29T05:38:02.143Z (4 months ago)
- Language: Java
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Digipost JAXB2 Jackson Helper
[](https://maven-badges.herokuapp.com/maven-central/no.digipost/jaxb2-jackson-helper)

[](https://github.com/digipost/jaxb2-jackson-helper/blob/main/LICENCE)In order to help Jackson a bit, this JAXB2/XJC plugin will add `@XmlElement(nillable=false)` if `nillable=false` and `minoccurs=0` is set in XSD.
## Getting the plugin
If using Maven you will probably enable the plugin in the configuration of your JAXB2 plugin.
For instance, if you use [maven-jaxb2-plugin](https://github.com/highsource/maven-jaxb2-plugin), this will enable the plugin in your build:```xml
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
-Xjacksonfive
...
no.digipost.jaxb
jaxb2-jackson-helper
...
```## License
Digipost JAXB2 Jackson Helper is licensed under [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)