libcyaml icon indicating copy to clipboard operation
libcyaml copied to clipboard

Specify value range in Schema

Open ManiAm opened this issue 4 years ago • 0 comments

Is there any ways to define the value range for a specific struct member using a schema. For example, in here:

https://github.com/tlsa/libcyaml/blob/eda1ae8caf27bddeb39bd0dd34763daa641bdadc/examples/planner/main.c#L135

Is there any ways to restrict the user to use values between 0-12 only?

ManiAm avatar Jul 23 '20 21:07 ManiAm