I couldnt find any docs so have to ask the question here.
What I am looking for, is to hook into schema object generation.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schemaObject
So that we can generate the schema object for domain classes based on mappings and constraints etc. And can specify what fields are required, pattern, description, default value, min max and other constraits etc.
Thanks