i have a personschema which has e.g. those two fields: Then I have another schema which extends the person schema. In this schema, I want those two properties (birthCountry and birthday) to be optional and only the name to be mandatory. I’ve tried it like that: But unfortunately, in the API-Docs they are still remarked as mandatory. Answer The issue
Tag: jsonschema2pojo
How can I write Java Model Class for Json Schema?
the problem is with coach, goalkeepers and defender like entity I don’t know how to make a class for this kind of response Answer When creating Java POJO for a json schema you just need to map the fields. For your problem we can something like this. Similarly we can make classes for GoalKeeper,.. ,so that they map the fields