Method: JSON::Oas::Validator.compute_fragment
- Defined in:
- lib/json-schema-oas/validator.rb
.compute_fragment(version, opts) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/json-schema-oas/validator.rb', line 23 def compute_fragment(version, opts) = Hash(opts) return if [:fragment] if [:with_schema] [:fragment] = Fragment.schema_for(version, [:with_schema].to_s) elsif [:with_response] [:fragment] = Fragment.response_schema_for(version, *Array([:with_response])) end end |