vertx/src/main/java/eu/internetofus/common/vertx/OpenAPIValidator.java
/**
   * Check the specification field that indicates the pattern for a string value.
   *
   * @param env validation environment to use.
   *
   * @throws ValidationErrorException if it is not an instance of.
   */
Check the specification field that indicates the pattern for a string value.
@param env validation environment to use.

@throws ValidationErrorException if it is not an instance of.
Check the specification field that indicates the pattern for a string value . @param env validation environment to use . @throws ValidationErrorException if it is not an instance of .
private static void checkPattern(@NotNull final SpecificationEnvironment env) throws ValidationErrorException {
    final var value = env.specification.getValue("pattern");
    if (value instanceof String) {
      try {
        Pattern.compile((String) value);
        checkIfTypeIs("pattern", env, "string");
      } catch (final Throwable cause) {
        throw env.notValid("pattern", "You pattern is not right formatted.", cause);
      }
    } else {
      throw env.notValid("pattern", "Expecting a 'string' value.");
    }
  }
private static void checkPattern ( @ NotNull final SpecificationEnvironment env ) throws ValidationErrorException { final var value = env . specification . getValue ( "pattern" ) ; if ( value instanceof String ) { try { Pattern . compile ( ( String ) value ) ; checkIfTypeIs ( "pattern" , env , "string" ) ; } catch ( final Throwable cause ) { throw env . notValid ( "pattern" , "You pattern is not right formatted." , cause ) ; } } else { throw env . notValid ( "pattern" , "Expecting a 'string' value." ) ; } }
Check the specification field that indicates the pattern for a string value.
Check the specification field that indicates the pattern for a string value .