mirror of
https://github.com/immich-app/immich.git
synced 2024-11-21 18:16:55 +02:00
chore(server): enable swagger to take class validator rules into account (#9022)
* enable swagger to take class validator rules into account * chore: open api
This commit is contained in:
parent
c9a079201a
commit
7f1651df71
BIN
mobile/openapi/lib/model/create_user_dto.dart
generated
BIN
mobile/openapi/lib/model/create_user_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/download_info_dto.dart
generated
BIN
mobile/openapi/lib/model/download_info_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/job_settings_dto.dart
generated
BIN
mobile/openapi/lib/model/job_settings_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/metadata_search_dto.dart
generated
BIN
mobile/openapi/lib/model/metadata_search_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/on_this_day_dto.dart
generated
BIN
mobile/openapi/lib/model/on_this_day_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/recognition_config.dart
generated
BIN
mobile/openapi/lib/model/recognition_config.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/smart_search_dto.dart
generated
BIN
mobile/openapi/lib/model/smart_search_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_image_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_image_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_o_auth_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_o_auth_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_trash_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_trash_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_user_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_user_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/update_user_dto.dart
generated
BIN
mobile/openapi/lib/model/update_user_dto.dart
generated
Binary file not shown.
@ -1447,6 +1447,8 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 31,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1455,6 +1457,8 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 12,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1499,6 +1503,7 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2086,6 +2091,7 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -2123,6 +2129,8 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 1000,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4456,6 +4464,7 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4488,6 +4497,8 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 1000,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -5622,6 +5633,7 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -8054,6 +8066,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"newPassword": {
|
"newPassword": {
|
||||||
"example": "password",
|
"example": "password",
|
||||||
|
"minLength": 8,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
@ -8286,6 +8299,7 @@
|
|||||||
},
|
},
|
||||||
"quotaSizeInBytes": {
|
"quotaSizeInBytes": {
|
||||||
"format": "int64",
|
"format": "int64",
|
||||||
|
"minimum": 1,
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
@ -8391,6 +8405,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"archiveSize": {
|
"archiveSize": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"assetIds": {
|
"assetIds": {
|
||||||
@ -8731,6 +8746,7 @@
|
|||||||
"JobSettingsDto": {
|
"JobSettingsDto": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"concurrency": {
|
"concurrency": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -9203,6 +9219,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"page": {
|
"page": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"personIds": {
|
"personIds": {
|
||||||
@ -9220,6 +9237,8 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"size": {
|
"size": {
|
||||||
|
"maximum": 1000,
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
@ -9321,6 +9340,7 @@
|
|||||||
"OnThisDayDto": {
|
"OnThisDayDto": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"year": {
|
"year": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -9676,13 +9696,18 @@
|
|||||||
},
|
},
|
||||||
"maxDistance": {
|
"maxDistance": {
|
||||||
"format": "float",
|
"format": "float",
|
||||||
|
"maximum": 2,
|
||||||
|
"minimum": 0,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"minFaces": {
|
"minFaces": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"minScore": {
|
"minScore": {
|
||||||
"format": "float",
|
"format": "float",
|
||||||
|
"maximum": 1,
|
||||||
|
"minimum": 0,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"modelName": {
|
"modelName": {
|
||||||
@ -10401,6 +10426,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"page": {
|
"page": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"personIds": {
|
"personIds": {
|
||||||
@ -10414,6 +10440,8 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"size": {
|
"size": {
|
||||||
|
"maximum": 1000,
|
||||||
|
"minimum": 1,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
@ -10551,21 +10579,27 @@
|
|||||||
"type": "array"
|
"type": "array"
|
||||||
},
|
},
|
||||||
"bframes": {
|
"bframes": {
|
||||||
|
"maximum": 16,
|
||||||
|
"minimum": -1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"cqMode": {
|
"cqMode": {
|
||||||
"$ref": "#/components/schemas/CQMode"
|
"$ref": "#/components/schemas/CQMode"
|
||||||
},
|
},
|
||||||
"crf": {
|
"crf": {
|
||||||
|
"maximum": 51,
|
||||||
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"gopSize": {
|
"gopSize": {
|
||||||
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"maxBitrate": {
|
"maxBitrate": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"npl": {
|
"npl": {
|
||||||
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"preferredHwDevice": {
|
"preferredHwDevice": {
|
||||||
@ -10575,6 +10609,8 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"refs": {
|
"refs": {
|
||||||
|
"maximum": 6,
|
||||||
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"targetAudioCodec": {
|
"targetAudioCodec": {
|
||||||
@ -10590,6 +10626,7 @@
|
|||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"threads": {
|
"threads": {
|
||||||
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"tonemap": {
|
"tonemap": {
|
||||||
@ -10638,15 +10675,19 @@
|
|||||||
"$ref": "#/components/schemas/ImageFormat"
|
"$ref": "#/components/schemas/ImageFormat"
|
||||||
},
|
},
|
||||||
"previewSize": {
|
"previewSize": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"quality": {
|
"quality": {
|
||||||
|
"maximum": 100,
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"thumbnailFormat": {
|
"thumbnailFormat": {
|
||||||
"$ref": "#/components/schemas/ImageFormat"
|
"$ref": "#/components/schemas/ImageFormat"
|
||||||
},
|
},
|
||||||
"thumbnailSize": {
|
"thumbnailSize": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -10835,6 +10876,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"defaultStorageQuota": {
|
"defaultStorageQuota": {
|
||||||
|
"minimum": 0,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"enabled": {
|
"enabled": {
|
||||||
@ -11013,6 +11055,7 @@
|
|||||||
"SystemConfigTrashDto": {
|
"SystemConfigTrashDto": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"days": {
|
"days": {
|
||||||
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"enabled": {
|
"enabled": {
|
||||||
@ -11028,6 +11071,7 @@
|
|||||||
"SystemConfigUserDto": {
|
"SystemConfigUserDto": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"deleteDelay": {
|
"deleteDelay": {
|
||||||
|
"minimum": 1,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -11254,6 +11298,7 @@
|
|||||||
},
|
},
|
||||||
"quotaSizeInBytes": {
|
"quotaSizeInBytes": {
|
||||||
"format": "int64",
|
"format": "int64",
|
||||||
|
"minimum": 1,
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nestjs/swagger",
|
"name": "@nestjs/swagger",
|
||||||
"options": {
|
"options": {
|
||||||
"classValidatorShim": false,
|
"classValidatorShim": true,
|
||||||
"introspectComments": true
|
"introspectComments": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user