Method: Jsapi::Meta::Example::Base#to_openapi

Defined in:
lib/jsapi/meta/example/base.rb

#to_openapiObject

Returns a hash representing the OpenAPI example object.



31
32
33
34
35
36
37
# File 'lib/jsapi/meta/example/base.rb', line 31

def to_openapi(*)
  with_openapi_extensions(
    { summary: summary, description: description }.tap do |result|
      result[external? ? :externalValue : :value] = value
    end
  )
end