forked from loafle/openapi-generator-original
20 lines
586 B
Ruby
20 lines
586 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/openapitools/openapi-generator.git
|
|
|
|
=end
|
|
|
|
|
|
class Pet < ApplicationRecord
|
|
validates_presence_of :name
|
|
validates_presence_of :photo_urls
|
|
|
|
serialize :photo_urls, Array
|
|
serialize :tags, Array
|
|
end
|