Mark An Open API Spec Endpoint As Deprecated

Place the key-value pair deprecated: true anywhere within the endpoint indented block to mark it as deprecated.

Here is an example

01: paths:
02:   /pet:
03:     put:
04:       tags:
05:         - pet
06:       summary: Update an existing pet
07:       description: Update an existing pet by Id
08:       operationId: updatePet
09:       deprecated: true # <---- Deprecation key-value entry

Here is another article you might like 😊 "Openapi Array Of Objects Example"