Sha256: 31491b4db197edebd0c91f5f53016a963a322d3a8093886774007c8320e0c548
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
# frozen_string_literal: true module WeakSwaggerParameters module Definitions module PathParams class String def initialize(name, description) @name = name @description = description end def apply_validations(parent_node) name = @name parent_node.instance_eval do string name, strong: true end end def apply_docs(parent_node) name = @name description = @description parent_node.instance_eval do parameter name: name, in: :path, required: true, description: description, type: :string end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
weak_swagger_parameters-0.3.0 | lib/weak_swagger_parameters/definitions/path_params/string.rb |