Sha256: 4abb28007dfeb4e9d99b9cbc8d7c743ba235b93f665b95cd8ef66f91894ce4cd

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require "openapi3_parser/node/object"

module Openapi3Parser
  module Node
    # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#securitySchemeObject
    class SecurityScheme < Node::Object
      # @return [String, nil]
      def type
        self["type"]
      end

      # @return [String, nil]
      def description
        self["description"]
      end

      # @return [String, nil]
      def description_html
        render_markdown(description)
      end

      # @return [String, nil]
      def name
        self["name"]
      end

      # @return [String, nil]
      def in
        self["in"]
      end

      # @return [String, nil]
      def scheme
        self["scheme"]
      end

      # @return [String, nil]
      def bearer_format
        self["bearerFormat"]
      end

      # @return [OauthFlows, nil]
      def flows
        self["flows"]
      end

      # @return [String, nil]
      def open_id_connect_url
        self["openIdConnectUrl"]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
openapi3_parser-0.9.2 lib/openapi3_parser/node/security_scheme.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node/security_scheme.rb