Sha256: 819654d3d5dcf2e82981369767fd24fdbddf8ef7ff69c0450de31bf22ae29c0e

Contents?: true

Size: 832 Bytes

Versions: 3

Compression:

Stored size: 832 Bytes

Contents

require 'apiture/swagger/info'
require 'apiture/swagger/external_docs'
require 'apiture/swagger/security'
require 'apiture/swagger/security_definition'
require 'apiture/swagger/path'
require 'apiture/swagger/definition'
# require 'apiture/swagger/response'

module Apiture
  module Swagger
    class Specification < Node
      attribute :swagger
      attribute :info, validate: true
      attribute :host
      attribute :base_path
      attribute :external_docs, validate: true

      list :schemes
      list :consumes
      list :produces
      list :tags, validate: true

      hash :paths, validate: true
      hash :definitions, validate: true
      hash :parameters, validate: true
      hash :responses, validate: true
      hash :security_definitions, validate: true
      hash :security, validate: true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apiture-0.2.2 lib/apiture/swagger/specification.rb
apiture-0.2.1 lib/apiture/swagger/specification.rb
apiture-0.2.0 lib/apiture/swagger/specification.rb