response-mediatype-enum-value-removed

Response mediatype enum value removed.

directionresponseareaschemakindvaluesactionremove

Not breaking (level: info)

oasdiff reports this in the changelog but does not treat it as a breaking change, so it does not fail CI by default.

Example

Before
responses:
  '200':
    description: OK
    content:
      application/json:
        schema:
          type: string
          enum: [active, inactive, pending]
After
responses:
  '200':
    description: OK
    content:
      application/json:
        schema:
          type: string
          enum: [active, inactive]

The response media type can no longer return "pending". Reported as informational because clients receive a subset of the values they already handled.

Change its severity or ignore it

To change the severity oasdiff assigns to response-mediatype-enum-value-removed, list its id and a level in a severity-levels file, one rule per line. The level can be err, warn, or info, or none to disable the check entirely:

# severity.txt
response-mediatype-enum-value-removed err

Then pass it to oasdiff:

oasdiff changelog base.yaml revision.yaml --severity-levels severity.txt

Setting the level to none disables the check, so it is no longer reported at all.

Related schema rules

Browse all 500 checks →