there is no `type: enum` in openapi specs, it has to be `type: string` https://swagger.io/docs/specification/v3_0/data-models/enums/ You can run the full validation with https://github.com/python-openapi/openapi-spec-validator