Class: OpenapiValidator::DocumentationValidator
- Inherits:
-
Object
- Object
- OpenapiValidator::DocumentationValidator
- Defined in:
- lib/openapi_validator/documentation_validator.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Class Method Summary collapse
-
.call(api_doc, additional_schemas: []) ⇒ DocumentationValidator
Validation result.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/openapi_validator/documentation_validator.rb', line 7 def errors @errors end |
Class Method Details
.call(api_doc, additional_schemas: []) ⇒ DocumentationValidator
Returns validation result.
12 13 14 |
# File 'lib/openapi_validator/documentation_validator.rb', line 12 def self.call(api_doc, additional_schemas: []) new(api_doc, additional_schemas: additional_schemas).call end |
Instance Method Details
#call ⇒ DocumentationValidator
17 18 19 |
# File 'lib/openapi_validator/documentation_validator.rb', line 17 def call validate end |
#valid? ⇒ true, false
22 23 24 |
# File 'lib/openapi_validator/documentation_validator.rb', line 22 def valid? errors.empty? end |