From 334945230a6ce5d099442be18bf4d60c6605f64f Mon Sep 17 00:00:00 2001 From: Sam Gunaratne Date: Thu, 21 Aug 2025 20:26:57 -0600 Subject: [PATCH] Various fixes from wiretap --- .../components/responses/BadRequest.yaml | 3 +++ .../components/schemas/ServiceBroker.yaml | 12 ----------- apis/cf/latest/paths/Buildpacks.yaml | 11 ++++++++-- apis/cf/latest/paths/Domains.yaml | 11 ++++++++-- apis/cf/latest/paths/Manifests.yaml | 20 +++++++++++++++++++ apis/cf/latest/paths/Organizations.yaml | 6 +++--- apis/cf/latest/paths/ResourceMatches.yaml | 16 ++++++++++++++- apis/cf/latest/paths/ServiceUsageEvents.yaml | 12 ++++++----- 8 files changed, 66 insertions(+), 25 deletions(-) diff --git a/apis/cf/latest/components/responses/BadRequest.yaml b/apis/cf/latest/components/responses/BadRequest.yaml index 2023489..c58bb36 100644 --- a/apis/cf/latest/components/responses/BadRequest.yaml +++ b/apis/cf/latest/components/responses/BadRequest.yaml @@ -3,3 +3,6 @@ content: application/json: schema: $ref: '../schemas/Errors.yaml' + text/html: + schema: + type: string diff --git a/apis/cf/latest/components/schemas/ServiceBroker.yaml b/apis/cf/latest/components/schemas/ServiceBroker.yaml index 3a7e491..0ec9e62 100644 --- a/apis/cf/latest/components/schemas/ServiceBroker.yaml +++ b/apis/cf/latest/components/schemas/ServiceBroker.yaml @@ -19,16 +19,6 @@ properties: type: string format: uri description: URL of the service broker - available: - type: boolean - description: Whether the service broker is available - status: - type: string - description: Status of the service broker - enum: - - available - - synchronization in progress - - synchronization failed relationships: type: object properties: @@ -52,6 +42,4 @@ required: - updated_at - name - url - - available - - status - links diff --git a/apis/cf/latest/paths/Buildpacks.yaml b/apis/cf/latest/paths/Buildpacks.yaml index dda3dc7..82c0dee 100644 --- a/apis/cf/latest/paths/Buildpacks.yaml +++ b/apis/cf/latest/paths/Buildpacks.yaml @@ -118,8 +118,15 @@ parameters: - $ref: '../components/parameters/Guid.yaml' responses: - '204': - description: Successfully deleted buildpack + '202': + description: Accepted + headers: + Location: + description: URL of the job that is deleting the buildpack + schema: + type: string + format: uri + '401': $ref: '../components/responses/Unauthorized.yaml' '404': diff --git a/apis/cf/latest/paths/Domains.yaml b/apis/cf/latest/paths/Domains.yaml index 885a9c0..5171b6e 100644 --- a/apis/cf/latest/paths/Domains.yaml +++ b/apis/cf/latest/paths/Domains.yaml @@ -136,8 +136,15 @@ parameters: - $ref: '../components/parameters/Guid.yaml' responses: - '204': - description: Successfully deleted domain + '202': + description: Accepted + headers: + Location: + description: URL of the job that is deleting the domain + schema: + type: string + format: uri + '401': $ref: '../components/responses/Unauthorized.yaml' '404': diff --git a/apis/cf/latest/paths/Manifests.yaml b/apis/cf/latest/paths/Manifests.yaml index 9bf6adb..5457633 100644 --- a/apis/cf/latest/paths/Manifests.yaml +++ b/apis/cf/latest/paths/Manifests.yaml @@ -60,6 +60,26 @@ schema: type: string responses: + '201': + description: Created + content: + application/json: + schema: + type: object + properties: + diff: + type: array + items: + type: object + properties: + op: + type: string + path: + type: string + was: + type: string + value: + type: string '202': description: Accepted content: diff --git a/apis/cf/latest/paths/Organizations.yaml b/apis/cf/latest/paths/Organizations.yaml index 03ddd9e..968312a 100644 --- a/apis/cf/latest/paths/Organizations.yaml +++ b/apis/cf/latest/paths/Organizations.yaml @@ -198,9 +198,9 @@ self: $ref: '../components/schemas/Link.yaml' description: The URL to get this usage summary - organization: - $ref: '../components/schemas/Link.yaml' - description: The URL to get the organization for this usage summary + organization: + $ref: '../components/schemas/Link.yaml' + description: The URL to get the organization for this usage summary '401': $ref: '../components/responses/Unauthorized.yaml' '404': diff --git a/apis/cf/latest/paths/ResourceMatches.yaml b/apis/cf/latest/paths/ResourceMatches.yaml index e61f19b..d46f881 100644 --- a/apis/cf/latest/paths/ResourceMatches.yaml +++ b/apis/cf/latest/paths/ResourceMatches.yaml @@ -12,7 +12,21 @@ properties: resources: description: List of resources to check for in the resource cache - type: string + type: array + items: + type: object + properties: + checksum: + type: object + properties: + value: + type: string + size_in_bytes: + type: integer + path: + type: string + mode: + type: string required: - resources type: object diff --git a/apis/cf/latest/paths/ServiceUsageEvents.yaml b/apis/cf/latest/paths/ServiceUsageEvents.yaml index 3649b4c..146fcd6 100644 --- a/apis/cf/latest/paths/ServiceUsageEvents.yaml +++ b/apis/cf/latest/paths/ServiceUsageEvents.yaml @@ -75,11 +75,13 @@ responses: '202': description: Accepted + headers: + Location: + description: URL of the job that is purging and seeding the service usage events + schema: + type: string + format: uri '401': $ref: '../components/responses/Unauthorized.yaml' '404': - $ref: '../components/responses/NotFound.yaml' - content: - application/json: - schema: - $ref: ../components/schemas/Job.yaml + $ref: '../components/responses/NotFound.yaml' \ No newline at end of file