Open lnash94 opened 10 months ago
Introduce the flattern enable with the flag option and default behaviour will be disable flattern
This the current implementation we will be unable to disable the flatten option since we have a dependency with naming for return status code in in client/service generation.
Description: In some scenarios, you should have all schemas defined inline (e.g. a response schema) moved to the components/schemas section and replaced with a reference to the newly added schema within components/schemas. With this fix, We do not flatten any inline schema within this fix and generate code with an inline record. ref: https://github.com/swagger-api/swagger-parser?tab=readme-ov-file#3-flatten