microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

OpenApi - Separate Model Generation and Code Generation for Snippets Generation

Open rkodev opened this issue 2 years ago • 4 comments

Current code generation for OpenAPI Languages need to process the snippet generation and code model for each language and this is done by the independent language generators. This means that a fix for one language on how to parse the snippet model or the object path requires the same fix to be done for all the other languages.

Describe the solution you'd like Updating the code generation process into

1. Snippet / Code Model Generation The "Code Model" will be able to process the snippet given and generate a generic Object Graph representing all the parts of the code model. The code model will not contain any language specific code but will hold all the properties that can be used write the snippet to a specific language code.

2. Language Writing All the languages would use the output of the code model to convert the Object Graph to Code

rkodev avatar May 16 '22 12:05 rkodev