[REQ] Schema preprocessor wanted
Is your feature request related to a problem? Please describe.
My problem is that I am using a schema file (occasionally updated) and there is a double that should be a decimal. I would like to preprocess the schema file to ensure this fix is always present.
Describe the solution you'd like
There are several ways to offer such a preprocessor. One way could be to allow the use of the Overlay Specification, but I don't know if it is finished yet: https://github.com/OAI/Overlay-Specification
I would like for the preprocessor step not create a new file, but make an on-the-fly transformation of the schema file, with optional debug output.
Describe alternatives you've considered
Adding a README file specifying that the schema file must be manually fixed.
Hi, this functionality already exists by using the functionality introduced in https://github.com/OpenAPITools/openapi-generator/pull/20995.
I see. The documentation unfortunately doesn't explain to me well enough how do do this. Also, as I am using OpenAPI Generator via the REST API Client Code Generator extension for visual studio, I need to be able to do this using the config file.
The schema file can be downloaded from here:
https://apis.e-conomic.com/#Journals
And I need the format attribute to be change from double to decimal, in the entries found using this string search (two hits):
"amount": {
If this is possible using the normalizer, I could use some help doing that. I don't know if this is where I can query for assistance, though.
I have never used the Client Code Generator extension so I am not knowledgeable of what it offers.
Given that this normalizer-injection is a quite new and niche functionality I would not be surprised if it is not supported. But I leave it to someone else to investigate and answer.