Class: Skooma::Objects::Operation

Inherits:
Base
  • Object
show all
Defined in:
lib/skooma/objects/operation.rb,
lib/skooma/objects/operation/keywords/callbacks.rb,
lib/skooma/objects/operation/keywords/responses.rb,
lib/skooma/objects/operation/keywords/parameters.rb,
lib/skooma/objects/operation/keywords/operation_id.rb,
lib/skooma/objects/operation/keywords/request_body.rb

Overview

Describes a single API operation on a path. spec.openapis.org/oas/v3.1.0#operation-object

Defined Under Namespace

Modules: Keywords

Constant Summary

Constants inherited from Base

Base::DEFAULT_OPTIONS

Instance Method Summary collapse

Methods inherited from Base

#initialize, #json_schema_dialect_uri

Methods included from ExternalRefs

#resolve_ref

Constructor Details

This class inherits a constructor from Skooma::Objects::Base

Instance Method Details

#bootstrap(value) ⇒ Object



25
26
27
28
# File 'lib/skooma/objects/operation.rb', line 25

def bootstrap(value)
  # always evaluate parameters to check parent parameters
  add_keyword(Keywords::Parameters.new(self, value["parameters"] || []))
end

#kw_classesObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/skooma/objects/operation.rb', line 8

def kw_classes
  [
    Base::Keywords::Tags,
    Base::Keywords::Summary,
    Base::Keywords::Description,
    Skooma::Keywords::OAS31::Dialect::ExternalDocs,
    Keywords::OperationId,
    Keywords::Parameters,
    Keywords::RequestBody,
    Keywords::Responses,
    Keywords::Callbacks,
    Base::Keywords::Deprecated,
    Base::Keywords::Security,
    Base::Keywords::Servers
  ]
end