Skip to content

CDRW-4743 Fix invalid $ref and description siblings.#193

Draft
cjrobbertse-ob wants to merge 1 commit intov4.0.1-draft-1from
CDRW-4743-Address-description-element-in-VRP-swagger-for-allOf
Draft

CDRW-4743 Fix invalid $ref and description siblings.#193
cjrobbertse-ob wants to merge 1 commit intov4.0.1-draft-1from
CDRW-4743-Address-description-element-in-VRP-swagger-for-allOf

Conversation

@cjrobbertse-ob
Copy link
Contributor

@cjrobbertse-ob cjrobbertse-ob commented Nov 11, 2025

In OAS v3.0.0 $ref cannot have direct siblings. So we have used allOf:'s to ground $ref and description which is valid.

Jira Ticket: https://openbanking.atlassian.net/browse/CDRW-4743

Copy link
Contributor

@OBPeteS OBPeteS left a comment

Choose a reason for hiding this comment

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

This doesn't appear to be based on v4.0 Swagger update 5?

The change was to remove descriptions next to references (and ensure that the description was inside the schema definition) but the PR appears to have added allOf to them instead?

@cjrobbertse-ob cjrobbertse-ob changed the title Updated OpenAPI schema references to use allOf for combining descri… CDRW-4743 Fix invalid $ref and description siblings. Nov 12, 2025
@cjrobbertse-ob
Copy link
Contributor Author

@OBPeteS the issue is that the internal descriptions are sometimes different to the reference description, hence the allOf pattern is used to overwrite the description in that instance of the reference. This pattern has already been used within v4.0.0 Swaggers.

@OBPeteS
Copy link
Contributor

OBPeteS commented Nov 18, 2025

As per discussion on Teams - this will be parked until the swagger file work is done outside of v4.0.1

@cjrobbertse-ob cjrobbertse-ob marked this pull request as draft November 19, 2025 12:19
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.

2 participants