(schema: Schema<any>, scope?: string)
| 97 | } |
| 98 | |
| 99 | buildSchema(schema: Schema<any>, scope?: string) { |
| 100 | if (!scope) return schema; |
| 101 | const cache = this.schemaCache.get(schema) || {}; |
| 102 | cache[scope] ||= Schema.object({ [scope]: schema }); |
| 103 | this.schemaCache.set(schema, cache); |
| 104 | return cache[scope]; |
| 105 | } |
| 106 | |
| 107 | async resolveConfig(plugin: any, configScope: string, dynamic = true) { |
| 108 | const schema = plugin['Config'] || plugin['schema']; |
no test coverage detected