Sha256: bf0c9c5b95d22196d56ef5daf43b6f7e92e9e90e69fbd9b87fcc4c5c4a24142f

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

class OAPI::OpenAPI::V30::Links < OAPI::Types::Map
  class Link < OAPI::Types::Object
    property :operation_ref
    property :operation_id
    property :request_body
    property :description

    property :parameters # TODO: a custom type? https://spec.openapis.org/oas/v3.0.3#fixed-fields-16
    property :server, OAPI::OpenAPI::V30::Servers::Server

    class << self
      def parse(json)
        ref = json[:$ref]
        return OAPI::Ref.new(ref) if ref

        super
      end
    end
  end

  item :link, Link
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oapi-0.1.2 lib/oapi/open_api/v30/links.rb