Sha256: 5541ec1a32377e163093a654a0b7207ba418cd9b76007c3f2961aa52356698e6

Contents?: true

Size: 848 Bytes

Versions: 4

Compression:

Stored size: 848 Bytes

Contents

module Schema
  module Api
    module V1
      module Types
        module Apress
          module Api
            class Link < ::Apress::Api::Swagger::Schema
              swagger_schema name.to_sym do
                key :required, [:href]
                key :description, 'A representation of a link object'

                property :href do
                  key :type, :string
                  key :description, 'A string containing the link’s URL'
                  key :example, 'https://www.example.com/api/v1/review_comments'
                end

                property :meta do
                  key :type, :object
                  key :description, 'A meta object containing non-standard meta-information about the link'
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apress-api-1.24.0 app/docs/schema/api/v1/types/apress/api/link.rb
apress-api-1.23.0 app/docs/schema/api/v1/types/apress/api/link.rb
apress-api-1.22.1 app/docs/schema/api/v1/types/apress/api/link.rb
apress-api-1.22.0 app/docs/schema/api/v1/types/apress/api/link.rb