FasterXML / FasterXML/jackson-module-jsonSchema

Issue with serializing enum to schema

Open
#127 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.