Simplifying and Validating HTTP Request Body in TypeScript
is there a more succinct way of validating the incoming request body, in fact is this an idiomatic way of performing a post at all? ive scoured discord and the docs but there's still a little uncertainty (theres no entries in discord for HttpClientRequest.schemaBodyJson or HttpClient.schemaFunction)
in the return statement, would
in the return statement, would
HttpClientRequest.bodyUnsafeJson(request), perhaps be more appropriate as the request is a Schema.TaggedRequest already, my intuition tells me im validating the request body redundantly a second time (the first being when the resolver is called within the service using the schema tagged request?