(this: HttpApiEndpoint.AnyWithProps, schema: Schema.Schema.Any, annotations?: { readonly status?: number })
| 768 | }) |
| 769 | }, |
| 770 | addError(this: HttpApiEndpoint.AnyWithProps, schema: Schema.Schema.Any, annotations?: { readonly status?: number }) { |
| 771 | return makeProto({ |
| 772 | ...this, |
| 773 | errorSchema: HttpApiSchema.UnionUnify( |
| 774 | this.errorSchema, |
| 775 | annotations?.status ? schema.annotations(HttpApiSchema.annotations({ status: annotations.status })) : schema |
| 776 | ) |
| 777 | }) |
| 778 | }, |
| 779 | setPayload(this: HttpApiEndpoint.AnyWithProps, schema: Schema.Schema.Any) { |
| 780 | return makeProto({ |
| 781 | ...this, |
nothing calls this directly
no test coverage detected