Is it possible to deprecated values of enum? if so what is the syntax.
I tried adding deprecated: true inside enum
enum:- test1- test2deprecated: true- test3
But build fails with error bad indentation of a sequence entry
Go to Solution.
This is not possible in the current version of the OpenAPI Specification.
But in the next version, OpenAPI 3.1, you will be able to define this by using oneOf + const + deprecated:
- const: test1
- const: test2
description: Use test3 instead
- const: test3
View solution in original post