Sha256: fcbb831fa1395c400a27c6e6051b446c0314e16716708c9f86a62cafb41360eb
Contents?: true
Size: 872 Bytes
Versions: 3
Compression:
Stored size: 872 Bytes
Contents
# frozen_string_literal: true require 'yori/schema/v3/external_documentation' module Yori module Schema module V3 # Tag # Adds metadata to a single tag that is used by the Operation Object. # It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. class Tag < Yori::SchemaBase # @!method name # REQUIRED. The name of the tag. # @!method description # A short description for the tag. # CommonMark syntax MAY be used for rich text representation. fields :name, :description # @!method externalDocs # Additional external documentation for this tag. field_block :externalDocs, Yori::Schema::V3::ExternalDocumentation def validate! validate_require_fields!('name') end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yori-0.1.2 | lib/yori/schema/v3/tag.rb |
yori-0.1.1 | lib/yori/schema/v3/tag.rb |
yori-0.1.0 | lib/yori/schema/v3/tag.rb |