|
cwist
Modern C web framework with libttak runtime
|
Single field descriptor used by both the healer and the Zod validator. More...
#include <json_heal.h>
Public Attributes | |
| const char * | name |
| Canonical field name. | |
| const char * | aliases [CWIST_SCHEMA_MAX_ALIASES] |
| Alternative names (NULL-terminated). | |
| cwist_field_type_t | type |
| Expected value type. | |
| bool | required |
| Must be present? | |
Single field descriptor used by both the healer and the Zod validator.
aliases is a NULL-terminated list of alternative names that will be renamed to name during L2 alignment. Fuzzy (case-insensitive, separator-stripped) matching is applied when exact aliases do not match.
Definition at line 58 of file json_heal.h.
| const char* cwist_schema_field::aliases[CWIST_SCHEMA_MAX_ALIASES] |
Alternative names (NULL-terminated).
Definition at line 60 of file json_heal.h.
Referenced by cwist_json_schema_align().
Canonical field name.
Definition at line 59 of file json_heal.h.
Referenced by cwist_json_schema_align(), and cwist_zod_validate().
| bool cwist_schema_field::required |
| cwist_field_type_t cwist_schema_field::type |
Expected value type.
Definition at line 61 of file json_heal.h.
Referenced by cwist_json_schema_align(), and cwist_zod_validate().