Define model and endpoints to store affinity between group pairs #200

Merged
bustikiller merged 4 commits from affinities-controller into main 2024-12-28 15:47:57 +00:00
Showing only changes of commit 9fe649f8b8 - Show all commits

View File

@ -36,10 +36,10 @@ RSpec.describe 'affinities', type: :request do
type: :array, type: :array,
items: { items: {
type: :object, type: :object,
required: %i[group_id discomfort], required: %i[group_id affinity],
properties: { properties: {
group_id: { type: :string, format: :uuid, description: 'ID of the associated group' }, group_id: { type: :string, format: :uuid, description: 'ID of the associated group' },
discomfort: { type: :integer, minimum: 0, maximum: 2 } affinity: { type: :integer, minimum: 0, maximum: 2 }
} }
} }
} }