Class PromptJsonSchemaValidator

  • All Implemented Interfaces:
    EventListener, javax.faces.validator.Validator<String>

    @ApplicationScoped
    public class PromptJsonSchemaValidator
    extends Object
    implements javax.faces.validator.Validator<String>
    Faces validator for string values that checks whether the string represents a valid JSON schema, according to the JSON Schema specification Draft 2020/12.
    Since:
    8.5.0
    • Method Detail

      • validate

        public void validate​(javax.faces.context.FacesContext context,
                             javax.faces.component.UIComponent component,
                             String value)
                      throws javax.faces.validator.ValidatorException
        Specified by:
        validate in interface javax.faces.validator.Validator<String>
        Throws:
        javax.faces.validator.ValidatorException