We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14f626f commit e3421ddCopy full SHA for e3421dd
src/openApi/v3/parser/escapeName.ts
@@ -1,5 +1,5 @@
1
export const escapeName = (value: string): string => {
2
- if (value) {
+ if (value || value === '') {
3
const validName = /^[a-zA-Z_$][\w$]+$/g.test(value);
4
if (!validName) {
5
return `'${value}'`;
0 commit comments