Skip to content

Lab 2063 CM displacement expirationDate - #177

Merged
Jonny Pound (JonnyPound90) merged 5 commits into
mainfrom
Lab-2063-displacement-expirationdate
Jun 2, 2026
Merged

Lab 2063 CM displacement expirationDate#177
Jonny Pound (JonnyPound90) merged 5 commits into
mainfrom
Lab-2063-displacement-expirationdate

Conversation

@CraigFW

@CraigFW Craig Whittington (CraigFW) commented May 29, 2026

Copy link
Copy Markdown
Contributor

Added expirationDate for a singular source of truth, expiryDate and replacementDate will become deprecated

Copilot AI review requested due to automatic review settings May 29, 2026 07:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/dataGateway/TypeScript/package.json
Comment thread specs/Data-Gateway.json

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  • replacementDate is marked deprecated, but it remains in the schema’s required list while the new expirationDate is optional. This makes it impossible for clients (especially for request schemas) to avoid the deprecated field. If expirationDate is intended to be the new source of truth, the required list should be updated accordingly.
                        "required": [
                            "costs",
                            "replacementDate"
                        ]

specs/Data-Gateway.json:3144

  • The PR description says expiryDate was removed for a single source of truth, but the schema still defines expiryDate and 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/replace expiryDate (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"
                ],

Comment thread specs/Data-Gateway.json
Comment thread specs/Data-Gateway.json Outdated
@JonnyPound90
Jonny Pound (JonnyPound90) merged commit 8b48eb9 into main Jun 2, 2026
7 of 9 checks passed
@JonnyPound90
Jonny Pound (JonnyPound90) deleted the Lab-2063-displacement-expirationdate branch June 2, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants