33 lines
736 B
Ruby
33 lines
736 B
Ruby
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
module Swagger
|
|
module Schema
|
|
USER = {
|
|
id: { type: :string, format: :uuid },
|
|
email: { type: :string, format: :email },
|
|
created_at: SwaggerResponseHelper::TIMESTAMP,
|
|
updated_at: SwaggerResponseHelper::TIMESTAMP
|
|
|
|
}
|
|
|
|
SLUG = {
|
|
name: 'slug',
|
|
in: :path,
|
|
type: :string,
|
|
pattern: Wedding::SLUG_REGEX,
|
|
example: :default,
|
|
description: 'Wedding slug'
|
|
}
|
|
|
|
CAPTCHA = {
|
|
captcha: {
|
|
type: :object,
|
|
required: %i[id answer],
|
|
properties: {
|
|
id: { type: :string, format: :uuid },
|
|
answer: { type: :string }
|
|
}
|
|
}
|
|
}
|
|
end
|
|
end |