From dfd6f343d08263eaa8be0fb7f876dc81ac9b4ebc Mon Sep 17 00:00:00 2001 From: Sam Gunaratne Date: Fri, 22 Aug 2025 11:34:55 -0600 Subject: [PATCH] Favour nullable since it works nicer than oneOf with clients --- apis/cf/latest/components/schemas/RelationshipToOne.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apis/cf/latest/components/schemas/RelationshipToOne.yaml b/apis/cf/latest/components/schemas/RelationshipToOne.yaml index 421c53d..26e294e 100644 --- a/apis/cf/latest/components/schemas/RelationshipToOne.yaml +++ b/apis/cf/latest/components/schemas/RelationshipToOne.yaml @@ -1,8 +1,7 @@ type: object properties: data: - oneOf: - - $ref: './Relationship.yaml' - - type: "null" + type: [object, "null"] + $ref: './Relationship.yaml' description: | Some relationships relate a resource to exactly one other resource. For example an app can belong to only one space.