openapi-ts-request 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generator/util.js +1 -1
- package/package.json +1 -1
package/dist/generator/util.js
CHANGED
|
@@ -285,7 +285,7 @@ function resolveFunctionName(functionName, methodName) {
|
|
|
285
285
|
}
|
|
286
286
|
// 标记引用的 $ref 对应的schema
|
|
287
287
|
function markAllowSchema(schemaStr, schemas) {
|
|
288
|
-
const refs = schemaStr === null || schemaStr === void 0 ? void 0 : schemaStr.match(/#\/components\/schemas\/([
|
|
288
|
+
const refs = schemaStr === null || schemaStr === void 0 ? void 0 : schemaStr.match(/#\/components\/schemas\/([\w%«».-]+)/g);
|
|
289
289
|
(0, lodash_1.forEach)(refs, (ref) => {
|
|
290
290
|
const schema = schemas === null || schemas === void 0 ? void 0 : schemas[getLastRefName(ref)];
|
|
291
291
|
if (schema && !schema.isAllowed) {
|
package/package.json
CHANGED