Validation - Basic validation

Some JSON schema syntax elements are translated as validation rules: required, length, pattern, etc.

You can also use the x-rules annotation to set custom rules indirectly as strings referencing functions in the rules option.

If you wrap the vjsf element in a v-form the validation mechanisms will work.

Click on the button at bottom-right of the example to trigger validation.

Initial display of validation errors is conditioned by the initialValidation option. By default the errors of properties with already filled values are displayed while pristine properties wait for user interactions or explicit call of validate().