Class: SpecForge::Error::InvalidOASDocument

Inherits:
Error
  • Object
show all
Defined in:
lib/spec_forge/error.rb

Overview

Raised when an OpenAPI specification fails validation

This error indicates that the generated OpenAPI document contains validation errors according to the OpenAPI specification standards. It's typically raised after attempting to validate a generated specification.

Examples:

begin
  generator.validate!(openapi_spec)
rescue SpecForge::Error::InvalidOASDocument
  puts "Generated specification has validation errors"
end