Skip to content

Configuration utility #5

@mwarman

Description

@mwarman

Describe the story

Create a validation utility which uses the zod library to parse and validate a Zod schema. When validation errors occur, format the ZodError issues into a nicely formatted ValidationError.

Acceptance criteria

GIVEN an object is validated with the validation utility
WHEN the validation succeeds
THEN the parsed and validated object is returned

WHEN the validation fails
THEN a ValidationError is returned whose message contains the issues from the original ZodError

Additional context

Add any other context about the story here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestrefineIssue needs refinement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions