ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

Disable the flatten option from OpenAPI parser for client , service code generation #5914

Open lnash94 opened 10 months ago

lnash94 commented 10 months ago

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

lnash94 commented 5 months ago

Introduce the flattern enable with the flag option and default behaviour will be disable flattern

lnash94 commented 3 months ago

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.