FasterXML / FasterXML/jackson-module-jsonSchema

Issue with serializing enum to schema

Aperta
#127 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
387
Fork
136
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.