for (let methodType of ['request', 'response']) { let groupUri = '/' + methodType + '/' + moduleName; let groupSchema = tv4.getSchema(groupUri); if (!groupSchema) continue; let commands = groupSchema.anyOf.map(elm => { }; for (let command of commands) { let schema = tv4.getSchema(command); let basePath = groupSchema.basePath; let name = command.split('/').pop();
schema: schema, }; let ref = tv4.getSchema(schema['$ref']); if (ref) { needDefs[row.type] = ref;