VEuPathDB / EdaUserService

An EDA service that tracks user state
Apache License 2.0
0 stars 0 forks source link

Optional boolean values, when omitted in request, are still present and return false #3

Closed ryanrdoherty closed 3 years ago

ryanrdoherty commented 3 years ago

This is because raml-to-jaxrs, our code generation library, generates primitive boolean fields by default for these values instead of Boolean (boxed values). We could solve this with another post-generation script, but it looks like the core.box plugin in the raml-to-pojo project could do this for us; we just need to figure out how to turn it on. I tried a few things, but could not get it to work. Ellie may know how.

Relevant links: https://github.com/mulesoft-labs/raml-java-tools/blob/master/raml-to-pojo/README.md https://github.com/mulesoft-labs/raml-for-jax-rs/issues/386

ryanrdoherty commented 3 years ago

Ellie fixed in the build tools project. Should be good on new builds; locally, devs will need to make clean; make install-dev-env to pick up, or visit .tools and git pull.