Update samples for Ruby-Client + Rails server. (#5214)

This commit is contained in:
Paŭlo Ebermann 2017-03-27 07:27:13 +02:00 committed by wing328
parent 9875855f63
commit 4ec23e6694
2 changed files with 7 additions and 1 deletions

View File

@ -273,6 +273,12 @@ module Petstore
if opts[:'enum_query_string'] && !['_abc', '-efg', '(xyz)'].include?(opts[:'enum_query_string'])
fail ArgumentError, 'invalid value for "enum_query_string", must be one of _abc, -efg, (xyz)'
end
if opts[:'enum_query_integer'] && !['1', '-2'].include?(opts[:'enum_query_integer'])
fail ArgumentError, 'invalid value for "enum_query_integer", must be one of 1, -2'
end
if opts[:'enum_query_double'] && !['1.1', '-1.2'].include?(opts[:'enum_query_double'])
fail ArgumentError, 'invalid value for "enum_query_double", must be one of 1.1, -1.2'
end
# resource path
local_var_path = "/fake"

View File

@ -1,6 +1,6 @@
# Swagger for Rails 5
This is a project to provide Swagger support inside the [Sinatra](http://rubyonrails.org/) framework.
This is a project to provide Swagger support inside the [Ruby on Rails](http://rubyonrails.org/) framework.
## Prerequisites
You need to install ruby >= 2.2.2 and run: