Define model and endpoints to store affinity between group pairs #200
| @ -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 } | ||||||
|               } |               } | ||||||
|             } |             } | ||||||
|           } |           } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user