Class: GrapeOpenapi3::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/grape_openapi3/config.rb

Overview

Configuration object passed through the document build.

schema_name_separator: joins namespace segments when two entities share the

same short name (e.g. V2::Mentors::MenteeResponse vs V2::Kids::MenteeResponse
become "Mentors_MenteeResponse" / "Kids_MenteeResponse"). Default "_".

Instance Attribute Summary collapse

Instance Attribute Details

#infoObject

Returns the value of attribute info

Returns:

  • (Object)

    the current value of info



9
10
11
# File 'lib/grape_openapi3/config.rb', line 9

def info
  @info
end

#schema_name_separatorObject

Returns the value of attribute schema_name_separator

Returns:

  • (Object)

    the current value of schema_name_separator



9
10
11
# File 'lib/grape_openapi3/config.rb', line 9

def schema_name_separator
  @schema_name_separator
end

#securityObject

Returns the value of attribute security

Returns:

  • (Object)

    the current value of security



9
10
11
# File 'lib/grape_openapi3/config.rb', line 9

def security
  @security
end

#security_schemesObject

Returns the value of attribute security_schemes

Returns:

  • (Object)

    the current value of security_schemes



9
10
11
# File 'lib/grape_openapi3/config.rb', line 9

def security_schemes
  @security_schemes
end

#serversObject

Returns the value of attribute servers

Returns:

  • (Object)

    the current value of servers



9
10
11
# File 'lib/grape_openapi3/config.rb', line 9

def servers
  @servers
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



9
10
11
# File 'lib/grape_openapi3/config.rb', line 9

def tags
  @tags
end