jsonschema2pojo open library - JAVA based POJOs generation

36 views
Skip to first unread message

Kamal Mittal

unread,
Jan 18, 2023, 6:55:20 AM1/18/23
to jsonschema2pojo-users
Hello,

I wanted to use jsonschema2pojo library for JSON schemas(specification : https://json-schema.org/) to Java based POJO's generation.

To use this library, having below queries if someone can help?
1) Is this library having community and open to contribution support? Good to use medium to large scale applicaitons in production w.r.t security vulnebratelities?

2) Also right now library not working for JSON schemas having if/then/else specification as attached. So can this library be extended for the same and support if/then/else easily? If suppose "then" having referenced schema then it generates the same but doesn't contain it in container class and if direct properties given as in attached sample ("Cause" name property) then nothing happens.

3) Union data type as below can have custom user defined "object" type too?
"Flags": {
        "description": "Request Header flags",
        "type": [
            "number",
            "string"
        ]
}

Rgds,
Kamal
sample.json

Kamal Mittal

unread,
Jan 19, 2023, 10:03:11 PM1/19/23
to jsonschema...@googlegroups.com
Hello All,

Can someone please give inputs for below mail?

Rgds,
Kamal

--
You received this message because you are subscribed to a topic in the Google Groups "jsonschema2pojo-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jsonschema2pojo-users/0l0EpFHpq1g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jsonschema2pojo-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsonschema2pojo-users/6d832987-f476-4df1-b910-3516c1bf6c4bn%40googlegroups.com.

Kamal Mittal

unread,
Jan 23, 2023, 10:30:31 PM1/23/23
to jsonschema2pojo-users
Hello All,

Can some one please see mails below and reply?

Rgds,
Kamal

sample.json
Reply all
Reply to author
Forward
0 new messages