FasterXML / jackson-module-jsonSchema

Module for generating JSON Schema (v3) definitions from POJOs
371 stars 135 forks source link

Add support to oneOf #64

Closed igreenfield closed 9 years ago

cowtowncoder commented 9 years ago

Sounds good to me.

Quick question: have I already asked for a CLA from you?

If not, we need to get a filled Contributor License Agreement (from https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf) with basic info, and it will be good for any and all contributions for the Jackson project. Both individual and corporate ones I fine (you can choose, most contributors fill individual ones).

I can merge this as soon as we have CLA, and it will make it in 2.6.0 nicely.

igreenfield commented 9 years ago

@cowtowncoder how do I pass you the CLA?

cowtowncoder commented 9 years ago

Ah sorry, forgot that part :)

So, print, fill-in and scan, then email to info at fasterxml dot com.

Or modify document digitally to include signature pasted in.

igreenfield commented 9 years ago

@cowtowncoder Done

vibhor-cts commented 7 years ago

@cowtowncoder @igreenfield I have a requirement wherein I want to generate schema from my java model, that schema should have oneOf attribute. I could see the oneOf support is added in ContainerTypeSchema but not sure how I can use it in my usecase. Are there any annotations I can put on my property so that the property is serialized as oneOf in the schema or there is some other way? Could you please guide or post some sample code snippet here?

cowtowncoder commented 7 years ago

@vibhor-cts I don't use this module myself so I can't help much. But you may want to ask on mailing lists; not many developers read issue reports.

vibhor-cts commented 7 years ago

@cowtowncoder Thanks for your quick reply. I will ask on mailing lists.

igreenfield commented 7 years ago

@vibhor-cts Did you look at the test? you can find example there.

vibhor-cts commented 7 years ago

@igreenfield Nope.. My bad, will have a look now.