File tree 1 file changed +3
-1
lines changed
packages/openapi-typescript/src/transform
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export default function transformPathItemObject(
105
105
// if operationId exists, move into an `operations` export and pass the reference in here
106
106
else if ( operationObject . operationId ) {
107
107
// workaround for issue caused by redocly ref parsing: https://github.com/drwpow/openapi-typescript/issues/1542
108
- const operationId = operationObject . operationId . replace ( / # / g , "/" ) ;
108
+ const operationId = operationObject . operationId . replace ( HASH_RE , "/" ) ;
109
109
operationType = oapiRef ( createRef ( [ "operations" , operationId ] ) ) ;
110
110
injectOperationObject (
111
111
operationId ,
@@ -132,3 +132,5 @@ export default function transformPathItemObject(
132
132
133
133
return ts . factory . createTypeLiteralNode ( type ) ;
134
134
}
135
+
136
+ const HASH_RE = / # / g;
You can’t perform that action at this time.
0 commit comments