Sha256: b34bf98405647cdc5714701331374f1d7bf7fa7ad038fa77336736ce14c34ac9

Contents?: true

Size: 577 Bytes

Versions: 4

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

class OAPI::OpenAPI::V30::Definition < OAPI::Types::Object
  property :openapi

  property :tags, OAPI::OpenAPI::V30::Tags
  property :servers, OAPI::OpenAPI::V30::Servers
  property :info, OAPI::OpenAPI::V30::Info
  property :external_docs, OAPI::OpenAPI::V30::ExternalDocs

  property :paths, OAPI::OpenAPI::V30::Paths

  property :components, OAPI::OpenAPI::V30::Components
  property :security

  def to_openapi = OAPI::OpenAPI::V30::Serializers::JSON.serialize(self)
  def to_ruby = OAPI::OpenAPI::V30::Serializers::Ruby.serialize(self)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oapi-0.1.3 lib/oapi/open_api/v30/definition.rb
oapi-0.1.2 lib/oapi/open_api/v30/definition.rb
oapi-0.1.1 lib/oapi/open_api/v30/definition.rb
oapi-0.1.0 lib/oapi/open_api/v30/definition.rb