View Source OpenAPI.Spec.Path.Operation (OpenAPI Generator v0.2.0)

Raw operation from the OpenAPI spec

Summary

Types

@type t() :: %OpenAPI.Spec.Path.Operation{
  "$oag_base_file": String.t(),
  "$oag_base_file_path": [OpenAPI.Spec.path_segment()],
  "$oag_last_ref_file": String.t() | nil,
  "$oag_last_ref_path": [OpenAPI.Spec.path_segment()],
  "$oag_path": String.t(),
  "$oag_path_method": String.t(),
  "$oag_path_parameters": [OpenAPI.Spec.Path.Parameter.t()],
  callbacks: nil,
  deprecated: boolean(),
  description: String.t() | nil,
  external_docs: OpenAPI.Spec.ExternalDocumentation.t() | nil,
  operation_id: String.t() | nil,
  parameters: [OpenAPI.Spec.Path.Parameter.t()],
  request_body: OpenAPI.Spec.RequestBody.t() | nil,
  responses: %{optional(pos_integer() | :default) => OpenAPI.Spec.Response.t()},
  security: nil,
  servers: [OpenAPI.Spec.Server.t()],
  summary: String.t() | nil,
  tags: [String.t()]
}

Functions

Link to this function

decode_parameters(state, arg2)

View Source
@spec decode_parameters(map(), map()) :: {map(), [OpenAPI.Spec.Path.Parameter.t()]}
Link to this function

decode_request_body(state, arg2)

View Source
@spec decode_request_body(map(), map()) :: {map(), OpenAPI.Spec.RequestBody.t() | nil}