-
Notifications
You must be signed in to change notification settings - Fork 16
EBL 3.0: SD-2502: Add shippingInstructionsRevisionNumber to SI #578
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a shippingInstructionsRevisionNumber field to the Shipping Instructions API to enable version tracking. This ensures carriers use the most recent Shipping Instructions update when creating Transport Documents.
- Added
shippingInstructionsRevisionNumberas an integer field with auto-incrementing capability - Field added to three Shipping Instructions schema components: Create request, response, and base schema
- Includes descriptive documentation explaining version tracking behavior
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| ebl/v3/EBL_v3.0.3.yaml | Added shippingInstructionsRevisionNumber field to CreateShippingInstructionsRequest, ShippingInstructions, and ShippingInstructionsResponse schemas with consistent description and example value |
| .stoplight/styleguide.json | Minor configuration update (not shown in diff) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| title: Create Shipping Instructions | ||
| properties: | ||
| shippingInstructionsRevisionNumber: | ||
| type: integer |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The shippingInstructionsRevisionNumber field lacks constraints. Consider adding minimum: 1 to ensure the revision number is always positive, as the description indicates it increments starting from 1.
| type: integer | |
| type: integer | |
| minimum: 1 |
| shippingInstructionsRevisionNumber: | ||
| type: integer | ||
| description: | | ||
| The version number of the **Shipping Instructions** provided by the customer to ensure the carrier uses the most recent update when creating the **Transport Document**. This value is expected to increment by one with each **Shipping Instructions** update, with higher values representing newer versions. |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The field is not marked as required in the CreateShippingInstructionsRequest schema. If version tracking is essential for ensuring carriers use the correct version, consider whether this field should be required, or document the behavior when it's omitted.
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
pedrocarvalhodcsa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me. Copilot has a question regarding negative values for the version, do you think that's good to include or unecessary?
I rather not put any restrictions on this - as it might turn up a carrier would like to use negative numbers. |
User description
SD-2502: Add
shippingInstructionsRevisionNumberto SIPR Type
Enhancement
Description
Add
shippingInstructionsRevisionNumberfield to track SI versionsField added to three Shipping Instructions schema components
Integer type with auto-incrementing version tracking capability
Ensures carrier uses most recent SI update for Transport Document
Diagram Walkthrough
File Walkthrough
EBL_v3.0.3.yaml
Add revision number field to SI schemasebl/v3/EBL_v3.0.3.yaml
shippingInstructionsRevisionNumberinteger field toCreateShippingInstructionsRequest schema
shippingInstructionsRevisionNumberinteger field toShippingInstructions schema
shippingInstructionsRevisionNumberinteger field toShippingInstructionsResponse schema
value of 1
styleguide.json
Styleguide configuration updates.stoplight/styleguide.json