From 58062f652198045d48e45bdd0c98293ac99b502c Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 10 Dec 2024 19:55:59 +0100 Subject: [PATCH] Include raw, live and animated photos in the Swagger UI --- spec/swagger/api/v1/photos_controller_spec.rb | 2 +- swagger/v1/swagger.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/swagger/api/v1/photos_controller_spec.rb b/spec/swagger/api/v1/photos_controller_spec.rb index d7c4de4c..16a9e85b 100644 --- a/spec/swagger/api/v1/photos_controller_spec.rb +++ b/spec/swagger/api/v1/photos_controller_spec.rb @@ -143,7 +143,7 @@ RSpec.describe 'Api::V1::PhotosController', type: :request do city: { type: :string }, state: { type: :string }, country: { type: :string }, - type: { type: :string, enum: %w[image video] }, + type: { type: :string, enum: %w[IMAGE VIDEO image video raw live animated] }, orientation: { type: :string, enum: %w[portrait landscape] }, source: { type: :string, enum: %w[immich photoprism] } } diff --git a/swagger/v1/swagger.yaml b/swagger/v1/swagger.yaml index f6072149..9e6a57dd 100644 --- a/swagger/v1/swagger.yaml +++ b/swagger/v1/swagger.yaml @@ -441,8 +441,13 @@ paths: type: type: string enum: + - IMAGE + - VIDEO - image - video + - raw + - live + - animated orientation: type: string enum: