lib/swagger_yard.rb
def register_custom_yard_tags!
      ::YARD::Tags::Library.define_tag("Api resource", :resource)
      ::YARD::Tags::Library.define_tag("Api path", :path, :with_types)
      ::YARD::Tags::Library.define_tag("Parameter", :parameter, :with_types_name_and_default)
      ::YARD::Tags::Library.define_tag("Response type", :response_type, :with_types)
      ::YARD::Tags::Library.define_tag("Error response message", :error_message, :with_types_and_name)
      ::YARD::Tags::Library.define_tag("Response", :response, :with_types_and_name)
      ::YARD::Tags::Library.define_tag("Api Summary", :summary)
      ::YARD::Tags::Library.define_tag("Model resource", :model)
      ::YARD::Tags::Library.define_tag("Model superclass", :inherits)
      ::YARD::Tags::Library.define_tag("Model property", :property, :with_types_name_and_default)
      ::YARD::Tags::Library.define_tag("Model discriminator", :discriminator, :with_types_name_and_default)
      ::YARD::Tags::Library.define_tag("Additional properties", :additional_properties)
      ::YARD::Tags::Library.define_tag("Authorization", :authorization, :with_types_and_name)
      ::YARD::Tags::Library.define_tag("Authorization Use", :authorize_with)
      # @example is a core YARD tag, let's use it
      # ::YARD::Tags::Library.define_tag("Example", :example, :with_title_and_text)
      ::YARD::Tags::Library.define_directive(:model, :with_title_and_text, Directives::ParamClassDirective)
    end
##
# Register some custom yard tags used by swagger-ui
Register some custom yard tags used by swagger-ui
Register some custom yard tags used by swagger - ui
def register_custom_yard_tags!
      ::YARD::Tags::Library.define_tag("Api resource", :resource)
      ::YARD::Tags::Library.define_tag("Api path", :path, :with_types)
      ::YARD::Tags::Library.define_tag("Parameter", :parameter, :with_types_name_and_default)
      ::YARD::Tags::Library.define_tag("Response type", :response_type, :with_types)
      ::YARD::Tags::Library.define_tag("Error response message", :error_message, :with_types_and_name)
      ::YARD::Tags::Library.define_tag("Response", :response, :with_types_and_name)
      ::YARD::Tags::Library.define_tag("Api Summary", :summary)
      ::YARD::Tags::Library.define_tag("Model resource", :model)
      ::YARD::Tags::Library.define_tag("Model superclass", :inherits)
      ::YARD::Tags::Library.define_tag("Model property", :property, :with_types_name_and_default)
      ::YARD::Tags::Library.define_tag("Model discriminator", :discriminator, :with_types_name_and_default)
      ::YARD::Tags::Library.define_tag("Additional properties", :additional_properties)
      ::YARD::Tags::Library.define_tag("Authorization", :authorization, :with_types_and_name)
      ::YARD::Tags::Library.define_tag("Authorization Use", :authorize_with)
      ::YARD::Tags::Library.define_directive(:model, :with_title_and_text, Directives::ParamClassDirective)
    end
def register_custom_yard_tags! :: YARD :: Tags :: Library . define_tag ( "Api resource" , :resource ) :: YARD :: Tags :: Library . define_tag ( "Api path" , :path , :with_types ) :: YARD :: Tags :: Library . define_tag ( "Parameter" , :parameter , :with_types_name_and_default ) :: YARD :: Tags :: Library . define_tag ( "Response type" , :response_type , :with_types ) :: YARD :: Tags :: Library . define_tag ( "Error response message" , :error_message , :with_types_and_name ) :: YARD :: Tags :: Library . define_tag ( "Response" , :response , :with_types_and_name ) :: YARD :: Tags :: Library . define_tag ( "Api Summary" , :summary ) :: YARD :: Tags :: Library . define_tag ( "Model resource" , :model ) :: YARD :: Tags :: Library . define_tag ( "Model superclass" , :inherits ) :: YARD :: Tags :: Library . define_tag ( "Model property" , :property , :with_types_name_and_default ) :: YARD :: Tags :: Library . define_tag ( "Model discriminator" , :discriminator , :with_types_name_and_default ) :: YARD :: Tags :: Library . define_tag ( "Additional properties" , :additional_properties ) :: YARD :: Tags :: Library . define_tag ( "Authorization" , :authorization , :with_types_and_name ) :: YARD :: Tags :: Library . define_tag ( "Authorization Use" , :authorize_with ) :: YARD :: Tags :: Library . define_directive ( :model , :with_title_and_text , Directives :: ParamClassDirective ) end
Register some custom yard tags used by swagger-ui
Register some custom yard tags used by swagger - ui
# @example is a core YARD tag, let's use it # ::YARD::Tags::Library.define_tag("Example", :example, :with_title_and_text)