jackson-module-jsonSchema icon indicating copy to clipboard operation
jackson-module-jsonSchema copied to clipboard

Issue with serializing enum to schema

Open felislynx-silae opened this issue 7 years ago • 0 comments

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?

felislynx-silae avatar Jan 31 '18 11:01 felislynx-silae