We would like to be able to roundtrip from OpenAPI document to csharp service code and back, in Menes.
Proposal
Build a model of the CSharp solution that extracts the OpenAPI-related service and type defintiions
Identify diffs between the CSharp model and the OpenAPI doc
Apply diffs
Questions for the PoC
Can Roslyn be used to identify the salient information in the solution to generate the OpenApi -> service diffs
Most of the challenges are in identifying the serialization form of the input and output parameters. What can we do without further warts in the OpenAPI doc and/or codebase to help with this? What can we do with additional attribute warts? Are there other approaches that would avoid the warts?
What can we do to allow you to plug in custom generation/description for your models? As we can see the comment trivia, can we use that to help with the round-tripping?
Problem space
We would like to be able to roundtrip from OpenAPI document to csharp service code and back, in Menes.
Proposal
Questions for the PoC