class Apipie::Params::Descriptor::String
validate arguments type
Public Class Methods
build(type, options, block)
click to toggle source
# File lib/apipie/params/descriptor.rb, line 95 def self.build(type, options, block) self.new(options) if type == ::String end
Public Instance Methods
description()
click to toggle source
# File lib/apipie/params/descriptor.rb, line 99 def description "Must be a string" end
json_schema()
click to toggle source
Calls superclass method
Apipie::Params::Descriptor::JsonSchema#json_schema
# File lib/apipie/params/descriptor.rb, line 103 def json_schema super.merge('type' => 'string') end