(schema: Schema.Schema.All)
| 523 | const HttpBodyFromSelf = Schema.declare(HttpBody.isHttpBody) |
| 524 | |
| 525 | const payloadSchemaBody = (schema: Schema.Schema.All): Schema.Schema<any, HttpBody.HttpBody> => { |
| 526 | const members = schema.ast._tag === "Union" ? schema.ast.types : [schema.ast] |
| 527 | return Schema.Union(...members.map(bodyFromPayload)) as any |
| 528 | } |
| 529 | |
| 530 | const bodyFromPayloadCache = globalValue( |
| 531 | "@effect/platform/HttpApiClient/bodyFromPayloadCache", |