Open jeffreydking opened 4 years ago
It will also work if you use the ECMA 262-format for the pattern, i.e. enclosing it with // (i.e. /([A-Z]){2}/ in your example above).
The Swagger yaml format specification specifies to use the ECMA 262 format, but in their examples in the same documentation they use format you use...
Description
Client SDK generation fails when referenced domain contains schema with pattern
If a domain contains an schema like this:
and the domain schema is referenced in a API spec like this:
Client SDK generation will fail with the following error:
Commenting out the pattern will allow the SDK to generate as expected.
Swagger-codegen version
Whichever version is in current use by SwaggerHub. I assume it is current.
Swagger declaration file content or url
See description.
Command line used for generation
Whatever SwaggerHub uses when selecting the option to generate Client SDKs for an API.
Steps to reproduce
See description.
Related issues/PRs
Not to my knowledge.
Suggest a fix/enhancement
Unknown.