Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid multiple validation of same property (relatedEntity here) by avoiding redefinition #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 13 additions & 18 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -927,10 +927,6 @@ components:
- CLOSED
- REJECTED
- CANCELED
relatedEntity:
type: array
items:
$ref: "#/components/schemas/RelatedBuilding"
acknowledgedDuration:
type: integer
readOnly: true
Expand Down Expand Up @@ -1107,23 +1103,10 @@ components:
AnomalieAdresseUpdate:
allOf:
- $ref: "#/components/schemas/AnomalieAdresseBase"
- required:
- relatedEntity
properties:
- properties:
"@baseType":
type: string
default: "AnomalieAdresseUpdate"
relatedEntity:
description: |
Liste des immeubles cibles de l'anomalie.

Si cette liste est supérieure à 1, alors l'OI traite les cas possibles de la demande en masse
et demande la résolution du ticket.
L'OC pourra rouvrir un ticket unitaire si besoin pour chaque cas non résolus.
type: array
minItems: 1
items:
$ref: "#/components/schemas/RelatedBuilding"
sizeRefs:
type: integer
description: |
Expand All @@ -1143,9 +1126,21 @@ components:
- $ref: "#/components/schemas/AnomalieAdresseUpdate"
- required:
- issues
- relatedEntity
properties:
issues:
$ref: "#/components/schemas/AnomalieAdresseUpdateImbIssues"
relatedEntity:
description: |
Liste des immeubles cibles de l'anomalie.

Si cette liste est supérieure à 1, alors l'OI traite les cas possibles de la demande en masse
et demande la résolution du ticket.
L'OC pourra rouvrir un ticket unitaire si besoin pour chaque cas non résolus.
type: array
minItems: 1
items:
$ref: "#/components/schemas/RelatedBuilding"

AnomalieAdresseUpdateImbIssues:
description: "Les anomalies spécifiques en masse"
Expand Down