An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# Digipost JAXB2 Jackson Helper

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/no.digipost/jaxb2-jackson-helper/badge.svg)](https://maven-badges.herokuapp.com/maven-central/no.digipost/jaxb2-jackson-helper)
![](https://github.com/digipost/jaxb2-jackson-helper/workflows/Build%20and%20deploy/badge.svg)
[![License](https://img.shields.io/badge/license-Apache%202-blue)](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)