Skip to content

Examples

These examples show Fynix at the point where validation becomes useful in an application: a request arrives, rules are defined, an object is validated, and the returned result is mapped into a form or API response.

Every example includes:

  • the DTO or value being validated
  • the rule definition
  • representative invalid input
  • the exact result shape
  • the API choice that fits the workflow
ExampleWhat it demonstrates
Registration workflowNested DTOs, conditional requiredness, and API errors.
Nested order validationArrays of objects and dot-notated error paths.
Field and API errorsStandalone values, validate(), and validateAll().
Interactive playgroundEdit sample values in the browser and inspect a representative returned result.

The registration guide provides the longer tutorial version of the first example. These pages focus on copyable patterns and their output.