Class: Jsapi::Meta::SecurityScheme::MutualTLS
- Inherits:
-
Base
- Object
- Model::Base
- Base
- Jsapi::Meta::SecurityScheme::MutualTLS
- Includes:
- OpenAPI::Extensions
- Defined in:
- lib/jsapi/meta/security_scheme/mutual_tls.rb
Overview
Specifies a security scheme based on MutualTLS.
Constant Summary
Constants included from Model::Attributes
Model::Attributes::DEFAULT_ARRAY, Model::Attributes::DEFAULT_HASH
Instance Method Summary collapse
-
#to_openapi(version) ⇒ Object
Returns a hash representing the OpenAPI security scheme object, or
nilifversionis less than OpenAPI 3.1.
Methods included from OpenAPI::Extensions
Methods inherited from Base
Methods inherited from Model::Base
#initialize, #inspect, #merge!, #reference?, #resolve
Methods included from Model::Attributes
Constructor Details
This class inherits a constructor from Jsapi::Meta::Model::Base
Instance Method Details
#to_openapi(version) ⇒ Object
Returns a hash representing the OpenAPI security scheme object, or nil if version is less than OpenAPI 3.1.
12 13 14 15 16 17 18 19 |
# File 'lib/jsapi/meta/security_scheme/mutual_tls.rb', line 12 def to_openapi(version, *) version = OpenAPI::Version.from(version) return if version < OpenAPI::V3_1 with_openapi_extensions( base_openapi_fields('mutualTLS', version) ) end |