Closed pevisscher closed 2 months ago
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @pevisscher and the rest of your teammates on Graphite
:tada: This PR is included in version 5.10.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This pull request updates the
RestClientBuilder
class to improve type safety and error handling. The changes include:DefinedError
from Ajv symbols in theEitherHelper
class.Left
interface to use the referencedDefinedError
type forvalidationErrors
.writeValidateRequestBody
method to accept areference
parameter, allowing for proper type referencing.validateRequestBody
method signature to use the referencedDefinedError
type in its generic constraint.These changes enhance the type safety of the REST client, particularly when dealing with validation errors and request body parsing.