zoedsoupe / peri

Elixir library for declarative data description and validation
MIT License
84 stars 2 forks source link

Avoid fetching Peri.Parser on raw data schemas #10

Closed zoedsoupe closed 3 months ago

zoedsoupe commented 3 months ago

Description When defining raw data structures schemas like {:list, schema}, internally the schema validator doesn't use the Peri.Parser, as it is designed to handle nested structres recursively.

So we provide the "root data" as the raw data as it is.

Related Issues This closes #7.

Type of Change

Checklist

Additional Context Add any other context or screenshots about the pull request here.