Add wash_date and category fields to complaints, update schema and OpenAPI spec, and extend unit and integration tests for validation and route handling.
This commit is contained in:
@@ -17028,12 +17028,17 @@ components:
|
||||
|
||||
DepartmentDailyReportComplaintCreateRequest:
|
||||
type: object
|
||||
required: [department_id, description]
|
||||
required: [department_id, wash_date, category, description]
|
||||
properties:
|
||||
department_id: { type: integer }
|
||||
customer_number:
|
||||
type: integer
|
||||
nullable: true
|
||||
wash_date:
|
||||
type: string
|
||||
format: date
|
||||
category:
|
||||
$ref: '#/components/schemas/DepartmentDailyReportComplaintCategory'
|
||||
description:
|
||||
type: string
|
||||
minLength: 1
|
||||
@@ -17048,11 +17053,29 @@ components:
|
||||
customer_number:
|
||||
type: integer
|
||||
nullable: true
|
||||
wash_date:
|
||||
type: string
|
||||
format: date
|
||||
category:
|
||||
$ref: '#/components/schemas/DepartmentDailyReportComplaintCategory'
|
||||
description:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 4000
|
||||
|
||||
DepartmentDailyReportComplaintCategory:
|
||||
type: string
|
||||
enum:
|
||||
- wash_quality
|
||||
- wash_price
|
||||
- damage_paint
|
||||
- damage_mirrors
|
||||
- damage_cables_electronics
|
||||
- damage_plastic_parts
|
||||
- damage_other
|
||||
- service
|
||||
- other
|
||||
|
||||
DepartmentDailyReportComplaintCustomerSearchResult:
|
||||
type: object
|
||||
properties:
|
||||
@@ -17076,6 +17099,14 @@ components:
|
||||
customer_name:
|
||||
type: string
|
||||
nullable: true
|
||||
wash_date:
|
||||
type: string
|
||||
format: date
|
||||
nullable: true
|
||||
category:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/DepartmentDailyReportComplaintCategory'
|
||||
nullable: true
|
||||
description: { type: string }
|
||||
created_by: { type: integer }
|
||||
created_by_name:
|
||||
|
||||
Reference in New Issue
Block a user