(schema: Schema.Top, decoded = false)
| 424 | ) { |
| 425 | const types = new Map<SchemaAST.AST, string>() |
| 426 | const typeOf = (schema: Schema.Top, decoded = false) => { |
| 427 | const projected = decoded ? Schema.toType(schema) : Schema.toEncoded(schema) |
| 428 | const cached = types.get(projected.ast) |
| 429 | if (cached !== undefined) return cached |
| 430 | const type = structuralType(projected) |
| 431 | types.set(projected.ast, type) |
| 432 | return type |
| 433 | } |
| 434 | const errors = new Map( |
| 435 | groups.flatMap((group) => |
| 436 | group.endpoints.flatMap((endpoint) => |
no test coverage detected