Interface OpenApiResult

    • Method Detail

      • getModel

        <T> T getModel​(java.lang.Class<T> api)
        get the OpenAPI model. T must be otherwise, it will throw an IllegalArgumentException
        Type Parameters:
        T - OpenAPI model type
        Parameters:
        api - class of the OpenAPI model
        Returns:
        OpenAPI model
      • validate

        boolean validate​(io.openapiprocessor.jsonschema.validator.Validator validator,
                         io.openapiprocessor.jsonschema.schema.SchemaStore schemaStore)
        run schema validation. Retrieve the collection of validation messages from getValidationErrors().
        Parameters:
        validator - json schema validator
        schemaStore - json schema store
        Returns:
        true if valid, else false
      • getValidationErrors

        java.util.Collection<ValidationError> getValidationErrors()
        validation errors.
        Returns:
        the validation errors.