From swagger file we need to extract properties like
- minimum, maximium, maxLength, minLength, pattern
in a json format, so that it can be used inside the javascript code to do validation.
We are uisng npx @openapitools/openapi-generator-cli to generate the interface and axios call, dident find config option we can pass to it to extract the properties also.
https://openapi-generator.tech/docs/generators/typescript-axios/
If there any we can generate the JSON with properties from yaml file.
Thank you.