Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

java.util.UUID with jaxrs-to-raml #322

Closed
derekm opened this issue Dec 11, 2017 · 3 comments
Closed

java.util.UUID with jaxrs-to-raml #322

derekm opened this issue Dec 11, 2017 · 3 comments

Comments

@derekm
Copy link

derekm commented Dec 11, 2017

How would I teach jaxrs-to-raml-cli about java.util.UUID types?

@jpbelang
Copy link
Contributor

Does jackson2 handle UUID types natively ? (I don't think so).

If it does (or if you can manage to register a serializer/deserializer outside of using annotations), you might be able to lie to it by forcing a java type on it with the className RAML annotation like this:
https://github.com/mulesoft-labs/raml-for-jax-rs/blob/821cc8864a690864e226a3465e49e27163fe8954/raml-to-jaxrs/jaxrs-code-generator/src/test/resources/org/raml/jaxrs/generator/v10/overrideScalarTypes.raml

Otherwise, you could write a plugin:
https://github.com/mulesoft-labs/raml-for-jax-rs/blob/master/raml-to-jaxrs/examples/maven-examples/features/README.md

@derekm
Copy link
Author

derekm commented Dec 18, 2017

I'm using jaxrs-to-raml... I want to generate RAML from my JAX-RS interfaces.

@jpbelang
Copy link
Contributor

There is an example in the 3.0.0-SNAPSHOT that show you how to do this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants