mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
Update samples for Ruby-Client + Rails server. (#5214)
This commit is contained in:
parent
9875855f63
commit
4ec23e6694
@ -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"
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user