( schema: Schema.Schema.Any )
| 760 | const responseSchema = Schema.declare(HttpServerResponse.isServerResponse) |
| 761 | |
| 762 | const makeSuccessSchema = ( |
| 763 | schema: Schema.Schema.Any |
| 764 | ): Schema.Schema<unknown, HttpServerResponse.HttpServerResponse> => { |
| 765 | const schemas = new Set<Schema.Schema.Any>() |
| 766 | HttpApiSchema.deunionize(schemas, schema) |
| 767 | return Schema.Union(...Array.from(schemas, toResponseSuccess)) as any |
| 768 | } |
| 769 | |
| 770 | const makeErrorSchema = ( |
| 771 | api: HttpApi.HttpApi.AnyWithProps |