Lab 2063 CM displacement expirationDate - #177
Merged
Jonny Pound (JonnyPound90) merged 5 commits intoJun 2, 2026
Merged
Conversation
Updated replacementDate to expirationDate
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- src/dataGateway/TypeScript/package-lock.json: Language not supported
Comments suppressed due to low confidence (2)
specs/Data-Gateway.json:3226
replacementDateis marked deprecated, but it remains in the schema’srequiredlist while the newexpirationDateis optional. This makes it impossible for clients (especially for request schemas) to avoid the deprecated field. IfexpirationDateis intended to be the new source of truth, therequiredlist should be updated accordingly.
"required": [
"costs",
"replacementDate"
]
specs/Data-Gateway.json:3144
- The PR description says
expiryDatewas removed for a single source of truth, but the schema still definesexpiryDateand keeps it required (and examples still use it). Either the PR description should be updated to reflect a deprecation-only change, or the schema should be updated to actually remove/replaceexpiryDate(which would be a breaking change).
"expiryDate": {
"$ref": "#/components/schemas/NullableDateTimeStringType",
"description": "DEPRECATED: Contract expiry date as an ISO 8601 date-time string, or null."
}
},
"required": [
"name",
"terms",
"contractNumber",
"expiryDate"
],
Jagdish Khunti (JagdishKhunti)
approved these changes
Jun 2, 2026
Jonny Pound (JonnyPound90)
deleted the
Lab-2063-displacement-expirationdate
branch
June 2, 2026 11:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added expirationDate for a singular source of truth, expiryDate and replacementDate will become deprecated