FasterXML / FasterXML/jackson-module-jsonSchema
Issue with serializing enum to schema
Open
- Dominant language
- Java
- Stars
- 387
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
Hi, i am trying to convert object to schema, where i'm using few enums. And sometimes the same enum is used in few places. I would love to have enum saved as separate object with references there, instead of multiple repetitions of field like this:
```
"theme" : {
"type" : "string",
"enum" : [ "LIGHT", "DARK" ]
},
```
Is there any way to achieve that?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.