BKG 2.0: EBL 3.0: SD-3100, SD-3101: Add support for identification of plastic pellets - #643
Conversation
PR Summary by QodoAdd equipmentAttributeCodes to BKG 2.0 and EBL 3.0 specs for plastic pellets
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1. Missing pellets phrase in commodityType
|
| equipmentAttributeCodes: | ||
| type: array | ||
| description: | | ||
| A list of `Equipment Attribute Codes` that apply to the requested equipment. |
There was a problem hiding this comment.
1. Missing pellets phrase in commoditytype 📎 Requirement gap ≡ Correctness
The BKG schema does not include the exact plastic-pellets declaration text on Commodity.commodityType, so shippers are not guided to provide the required phrase per the ticket requirement.
Agent Prompt
## Issue description
PR Compliance ID 2 requires the BKG API commodity type to include the exact declaration text: `CONTAINS PLASTIC PELLETS (PLX) AS PER IMO MEPC.1/CIRC.909`. The current `Commodity.commodityType` schema description/example does not include this declaration.
## Issue Context
This PR adds `equipmentAttributeCodes`, but the compliance item explicitly requires the human-readable declaration text to be present on the commodity type (as specified in the SD-3100 ticket).
## Fix Focus Areas
- bkg/v2/BKG_v2.0.5.yaml[5831-5837]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
There was a problem hiding this comment.
Pull request overview
This PR adds a new equipmentAttributeCodes array field to Booking (BKG 2.0) and eBL-related schemas (EBL 3.0 / EBL issuance / PINT) to support identifying shipments (e.g., plastic pellets) via SMDG Equipment Attribute Codes.
Changes:
- Add
equipmentAttributeCodesto BookingRequestedEquipmentandRequestedEquipmentShipper. - Add
equipmentAttributeCodesto EBLCargoItemandCargoItemShipper. - Add
equipmentAttributeCodesto PINTCargoItemand EBL IssuanceCargoItem.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| pint/v3/EBL_PINT_v3.0.0.yaml | Adds equipmentAttributeCodes to PINT CargoItem to carry SMDG attribute codes. |
| ebl/v3/issuance/EBL_ISS_v3.0.4.yaml | Adds equipmentAttributeCodes to issuance CargoItem to propagate SMDG attribute codes. |
| ebl/v3/EBL_v3.0.4.yaml | Adds equipmentAttributeCodes to CargoItem and CargoItemShipper for Shipping Instructions payloads. |
| bkg/v2/BKG_v2.0.5.yaml | Adds equipmentAttributeCodes to requested equipment schemas to flag attribute-coded shipments at booking time. |
Suppressed comments (3)
ebl/v3/EBL_v3.0.4.yaml:8174
- The
equipmentAttributeCodesitem schema is currently an unconstrainedstring, which allows empty/whitespace-only values even though this is a code-list field. Consider adding the standard non-blank string pattern used throughout the spec to improve validation.
items:
type: string
description: |
The code used to identify a property or status applicable to the cargo item. The codeList used is the [SMDG ATTRIBUTES Code List](https://smdg.org/documents/smdg-code-lists/smdg-handling-stowins-attributes-code-lists/).
example: PLX
ebl/v3/EBL_v3.0.4.yaml:8241
- The
equipmentAttributeCodesitem schema is currently an unconstrainedstring, which allows empty/whitespace-only values even though this is a code-list field. Consider adding the standard non-blank string pattern used throughout the spec to improve validation.
items:
type: string
description: |
The code used to identify a property or status applicable to the cargo item. The codeList used is the [SMDG ATTRIBUTES Code List](https://smdg.org/documents/smdg-code-lists/smdg-handling-stowins-attributes-code-lists/).
example: PLX
bkg/v2/BKG_v2.0.5.yaml:5448
- The
equipmentAttributeCodesitem schema is currently an unconstrainedstring, which allows empty/whitespace-only values even though this is a code-list field. Consider adding the standard non-blank string pattern used throughout the spec to improve validation.
items:
type: string
description: |
The code used to identify a property or status applicable to the requested equipment. The codeList used is the [SMDG ATTRIBUTES Code List](https://smdg.org/documents/smdg-code-lists/smdg-handling-stowins-attributes-code-lists/).
example: PLX
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| items: | ||
| type: string | ||
| description: | | ||
| The code used to identify a property or status applicable to the cargo item. The codeList used is the [SMDG ATTRIBUTES Code List](https://smdg.org/documents/smdg-code-lists/smdg-handling-stowins-attributes-code-lists/). | ||
| example: PLX |
| items: | ||
| type: string | ||
| description: | | ||
| The code used to identify a property or status applicable to the cargo item. The codeList used is the [SMDG ATTRIBUTES Code List](https://smdg.org/documents/smdg-code-lists/smdg-handling-stowins-attributes-code-lists/). | ||
| example: PLX |
| items: | ||
| type: string | ||
| description: | | ||
| The code used to identify a property or status applicable to the requested equipment. The codeList used is the [SMDG ATTRIBUTES Code List](https://smdg.org/documents/smdg-code-lists/smdg-handling-stowins-attributes-code-lists/). | ||
| example: PLX |
| equipmentAttributeCodes: | ||
| type: array | ||
| description: | | ||
| A list of `Equipment Attribute Codes` that apply to the cargo item. | ||
| items: |
SD-3100: Add support for identification of plastic pellets shipments in Booking request
SD-3101: API: Add support for identification of plastic pellets shipments in Shipping Instructions