mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
25 lines
470 B
Ruby
25 lines
470 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ErrorsSchema
|
|
def self.schema
|
|
{
|
|
type: :object,
|
|
properties: {
|
|
errors: {
|
|
type: :array,
|
|
items: {
|
|
type: :object,
|
|
properties: {
|
|
title: { type: :string },
|
|
detail: { type: :string },
|
|
source: { type: :object }
|
|
},
|
|
required: [:detail]
|
|
}
|
|
}
|
|
},
|
|
required: [:errors]
|
|
}
|
|
end
|
|
end
|