On Wed, Sep 12, 2018 at 11:46 PM 'Gunnar Morling' via jackson-user <[email protected]> wrote: > > This got stuck in the moderation queue for a while, in between I've found a > solution. > > For those interested, I'm using custom extensions of IntegerSchema etc. > (exposed via a custom JsonSchemaFactory) which provide all the info (e.g. the > Connect data type) needed for serializing them into the Kafka Connect schema. > I'm receiving all relevant info such as the property name and type via > enrichWithBeanProperty(). Custom serializers are then used to emit the Kafka > Connect schema JSON structure.
Thank you for sharing your solution! Unfortunately JSON Schema module is currently unmaintained and it is not clear what will be done with it for Jackson 3.0. If anyone is interested in maintaining it, I'd be happy to give over control. But there are many other Java JSON Schema projects and perhaps one of those works better already. -+ Tatu +- > > --Gunnar > > Am Donnerstag, 13. September 2018 07:03:47 UTC+2 schrieb Gunnar Morling: >> >> Hi, >> >> I'm looking for an example for creating custom output formats when using the >> JSON Schema Module. The README says "Thus, it might feasibly be extended or >> mirrored to produce xml or even google closure interfaces or classes in >> addition to the current json schema format.", but I couldn't find any hints >> really for e.g. producing XML Schema instead of JSON Schema. >> >> If it helps, the format I'm after is the JSON schema representation used by >> Kafka Connect (https://kafka.apache.org/documentation/#connect), which for >> instance allows for more expressive numeric types (int64, int16 etc.) than >> regular JSON Schema. >> >> Any hints on how to produce such custom schema output would be much >> appreciated. >> >> --Gunnar >> > -- > You received this message because you are subscribed to the Google Groups > "jackson-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
