mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
88227e08e3
* remove php apache license * remove license in sample code, update nodejs to use unlicnese * remove license from jaxrs generator * remove license from server generator * update pom.xml for jaxrs resteasy joda server
20 lines
583 B
Ruby
20 lines
583 B
Ruby
=begin
|
|
Swagger Petstore
|
|
|
|
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
|
|
OpenAPI spec version: 1.0.0
|
|
Contact: apiteam@swagger.io
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
|
|
=end
|
|
|
|
|
|
class Pet < ApplicationRecord
|
|
validates_presence_of :name
|
|
validates_presence_of :photo_urls
|
|
|
|
serialize :photo_urls, Array
|
|
serialize :tags, Array
|
|
end
|