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.

--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.

Reply via email to