@@ -29,17 +29,16 @@ $validator->validate(
29
29
);
30
30
```
31
31
32
-
33
-
34
32
## Available flags
35
- | Flag | | Value | Description |
36
- | -------------------------------------------------| :--| --------------| ---------------------------------------------------------------|
37
- | ` Constraint::CHECK_MODE_NORMAL ` | | ` 0x00000001 ` | Validate in 'normal' mode - this is the default |
38
- | ` Constraint::CHECK_MODE_TYPE_CAST ` | | ` 0x00000002 ` | Enable fuzzy type checking for associative arrays and objects |
39
- | ` Constraint::CHECK_MODE_COERCE_TYPES ` | | ` 0x00000004 ` | Convert data types to match the schema where possible |
40
- | ` Constraint::CHECK_MODE_APPLY_DEFAULTS ` | | ` 0x00000008 ` | Apply default values from the schema if not set |
41
- | ` Constraint::CHECK_MODE_EXCEPTIONS ` | | ` 0x00000010 ` | Throw an exception immediately if validation fails |
42
- | ` Constraint::CHECK_MODE_DISABLE_FORMAT ` | | ` 0x00000020 ` | Do not validate "format" constraints |
43
- | ` Constraint::CHECK_MODE_EARLY_COERCE ` | | ` 0x00000040 ` | Apply type coercion as soon as possible |
44
- | ` Constraint::CHECK_MODE_ONLY_REQUIRED_DEFAULTS ` | | ` 0x00000080 ` | When applying defaults, only set values that are required |
45
- | ` Constraint::CHECK_MODE_VALIDATE_SCHEMA ` | | ` 0x00000100 ` | Validate the schema as well as the provided document |
33
+ | Flag | | Value | Description |
34
+ | -------------------------------------------------| :--| --------------| --------------------------------------------------------------------------|
35
+ | ` Constraint::CHECK_MODE_NORMAL ` | | ` 0x00000001 ` | Validate in 'normal' mode - this is the default |
36
+ | ` Constraint::CHECK_MODE_TYPE_CAST ` | | ` 0x00000002 ` | Enable fuzzy type checking for associative arrays and objects |
37
+ | ` Constraint::CHECK_MODE_COERCE_TYPES ` | | ` 0x00000004 ` | Convert data types to match the schema where possible |
38
+ | ` Constraint::CHECK_MODE_APPLY_DEFAULTS ` | | ` 0x00000008 ` | Apply default values from the schema if not set |
39
+ | ` Constraint::CHECK_MODE_EXCEPTIONS ` | | ` 0x00000010 ` | Throw an exception immediately if validation fails |
40
+ | ` Constraint::CHECK_MODE_DISABLE_FORMAT ` | | ` 0x00000020 ` | Do not validate "format" constraints |
41
+ | ` Constraint::CHECK_MODE_EARLY_COERCE ` | | ` 0x00000040 ` | Apply type coercion as soon as possible |
42
+ | ` Constraint::CHECK_MODE_ONLY_REQUIRED_DEFAULTS ` | | ` 0x00000080 ` | When applying defaults, only set values that are required |
43
+ | ` Constraint::CHECK_MODE_VALIDATE_SCHEMA ` | | ` 0x00000100 ` | Validate the schema as well as the provided document |
44
+ | ` Constraint::CHECK_MODE_STRICT ` | | ` 0x00000200 ` | Validate the schema using strict mode, respecting the $schema identifier |
0 commit comments