openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

Non ascii character support

Open josstn opened this issue 2 years ago • 0 comments

This replaces regexp patterns that only worked with ascii characters with more proper matching that supports unicode identifiers in typescript/javascript.

So that the generated code can have valid unicode characters in enum, type, service, operation and parameter names.

The platform must support "unicode-aware mode" (the u flag) for this to work. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode

This PR replaces #2038

josstn avatar Feb 16 '24 09:02 josstn