mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
Update Series Rules API Swagger Documentation to include required items parameter for TYPE_ARRAY schemas
This commit is contained in:
parent
b5fedc1a6c
commit
2abe07fe1c
2 changed files with 27 additions and 3 deletions
|
|
@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.18.0] - 2026-01-27
|
||||
### Fixed
|
||||
|
||||
- Series Rules API Swagger Documentation: Fixed drf_yasg validation error where TYPE_ARRAY schemas were missing required items parameter, causing module import failure
|
||||
|
||||
## [0.18.0] - 2026-01-27
|
||||
|
||||
|
|
|
|||
|
|
@ -2454,7 +2454,18 @@ class SeriesRulesAPIView(APIView):
|
|||
type=openapi.TYPE_OBJECT,
|
||||
properties={
|
||||
'success': openapi.Schema(type=openapi.TYPE_BOOLEAN),
|
||||
'rules': openapi.Schema(type=openapi.TYPE_ARRAY, description='Updated list of all rules'),
|
||||
'rules': openapi.Schema(
|
||||
type=openapi.TYPE_ARRAY,
|
||||
items=openapi.Schema(
|
||||
type=openapi.TYPE_OBJECT,
|
||||
properties={
|
||||
'tvg_id': openapi.Schema(type=openapi.TYPE_STRING),
|
||||
'mode': openapi.Schema(type=openapi.TYPE_STRING),
|
||||
'title': openapi.Schema(type=openapi.TYPE_STRING),
|
||||
},
|
||||
),
|
||||
description='Updated list of all rules'
|
||||
),
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
@ -2506,7 +2517,18 @@ class DeleteSeriesRuleAPIView(APIView):
|
|||
type=openapi.TYPE_OBJECT,
|
||||
properties={
|
||||
'success': openapi.Schema(type=openapi.TYPE_BOOLEAN),
|
||||
'rules': openapi.Schema(type=openapi.TYPE_ARRAY, description='Updated list of all rules'),
|
||||
'rules': openapi.Schema(
|
||||
type=openapi.TYPE_ARRAY,
|
||||
items=openapi.Schema(
|
||||
type=openapi.TYPE_OBJECT,
|
||||
properties={
|
||||
'tvg_id': openapi.Schema(type=openapi.TYPE_STRING),
|
||||
'mode': openapi.Schema(type=openapi.TYPE_STRING),
|
||||
'title': openapi.Schema(type=openapi.TYPE_STRING),
|
||||
},
|
||||
),
|
||||
description='Updated list of all rules'
|
||||
),
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue