EBL 3.0: SD-3041: Move displayedToOrderText next to isToOrder - #650
Conversation
PR Summary by QodoMove displayedToOrderText adjacent to isToOrder in EBL 3.0 specs
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. displayedToOrderText not gated by isToOrder
|
| displayedToOrderText: | ||
| type: array | ||
| description: | | ||
| Text to be displayed in the Transport Document visualisation of a negotiable BL to represent the endorsee, typically shown in the consignee field in the traditional BL layout. This attribute can be used instead of providing endorsee party details when no specific information (e.g. address, contact details) should be displayed. |
There was a problem hiding this comment.
1. displayedtoordertext not gated by istoorder 📎 Requirement gap ≡ Correctness
The schema defines displayedToOrderText as a regular optional root property, so payloads can include it even when isToOrder=false because no schema-level restriction ties the two fields. This violates the requirement that displayedToOrderText is only permitted when isToOrder=true.
Agent Prompt
## Issue description
`displayedToOrderText` is documented as only applicable when `isToOrder=TRUE`, but the OpenAPI schemas currently allow it to be provided regardless of the value of `isToOrder`.
## Issue Context
PR Compliance ID 3 requires that `Displayed To Order Text` is only permitted/processed when `isToOrder` is true, so the schema should enforce that `displayedToOrderText` cannot appear unless `isToOrder=true`.
## Fix Focus Areas
- ebl/v3/EBL_v3.0.4.yaml[4262-4284]
- ebl/v3/issuance/EBL_ISS_v3.0.4.yaml[807-829]
- pint/v3/EBL_PINT_v3.0.0.yaml[1466-1488]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
SD-3041: Move
displayedToOrderTextnext toisToOrder