This change involves breaking down the generated types into modules.
The planned structure would look like :

Some things we need to take care of while implementing this change :
- All imports will be qualified (even in
Contract.hs)
- The modules in
GlobalDefinitions would need to be imported into all (all routes, all methods) other Types.hs files.
- In
ResponseDefinitions.hs , we would also need to generate the Header types (if any are specified in the Swagger Doc) for the global response types (if any)
- We need to take care that while generating the
Contract, we are referring to the correct types at correct places (correct qualification) especially for Params.
This change involves breaking down the generated types into modules.
The planned structure would look like :
Some things we need to take care of while implementing this change :
Contract.hs)GlobalDefinitionswould need to be imported into all (all routes, all methods) otherTypes.hsfiles.ResponseDefinitions.hs, we would also need to generate theHeadertypes (if any are specified in the Swagger Doc) for the global response types (if any)Contract, we are referring to the correct types at correct places (correct qualification) especially for Params.