module Symphonia module Swagger class ErrorModel include ::Swagger::Blocks swagger_schema :ErrorModel do key :required, %i[attribute messages] property :attribute do key :type, :string key :example, "login" end property :messages do key :type, :array key :example, "[cannot be blank]" end end end end end