Sha256: 18b8011c8f0894bed6d3c7f62ed8befff2c85f4f393f47357e3bc7ad221ac2fd

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 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
        node_data["type"]
      end

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

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

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

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

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openapi3_parser-0.5.2 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.5.1 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.5.0 lib/openapi3_parser/node/security_scheme.rb
openapi3_parser-0.4.0 lib/openapi3_parser/node/security_scheme.rb