Skip to content

Webhook operations missing required responses field #200

Description

@Shaun-3adesign

Describe the bug

All 8 webhook operations in TimeAddressableMediaStore.yaml are missing a responses field. The OpenAPI 3.1 spec requires responses on every Operation Object, and webhooks use the same structure as path operations, so there's no exemption. Strictly speaking this makes the spec invalid.

Affected webhooks: flows/created, flows/updated, flows/deleted, flows/segments_added, flows/segments_deleted, sources/created, sources/updated, sources/deleted.

Expected behavior

Each webhook operation should have a responses field describing what the receiving endpoint (the registered client) should return. In practice this is usually just a 200 acknowledgement, but the field needs to be present.

Suggested fix

Add a responses block to each webhook operation:

flows/created:
  post:
    requestBody:
      ...
    responses:
      "200":
        description: Webhook received successfully

Additional context

Per the OpenAPI 3.1 spec — Operation Object, responses is a required field. Webhooks use the same Operation Object structure as path operations so there's no exemption.

Found this while trying to generate server stubs with openapi-generator — it validates the spec before generating and hard fails on the missing field.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions