(schema: Schema.Top, path: string)
| 797 | } |
| 798 | |
| 799 | function responseSchemas(schema: Schema.Top, path: string): Array<readonly [string, Schema.Top]> { |
| 800 | if (HttpApiSchema.isNoContent(schema.ast)) return [] |
| 801 | if (!isStreamSchema(schema)) return [[path, schema]] |
| 802 | if (schema._tag === "StreamUint8Array") return [] |
| 803 | const value = schema.sseMode === "data" ? streamDataSchema(schema) : schema.events |
| 804 | return [ |
| 805 | [`${path}.${schema.sseMode}`, value], |
| 806 | [`${path}.error`, schema.error], |
| 807 | ] |
| 808 | } |
| 809 | |
| 810 | function assertPortable(schema: Schema.Top, path: string, portable: Map<SchemaAST.AST, boolean>) { |
| 811 | const visiting = new Set<SchemaAST.AST>() |
no test coverage detected