def test_model_with_enum_oas(self):
        """
        REST Api: Test model with enum OAS
        """
        self.maxDiff = None
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)
        uri = "/api/v1/_openapi"
        rv = self.auth_client_get(client, token, uri)
        data = json.loads(rv.data.decode("utf-8"))
        expected_response = {
            "properties": {
                "enum1": {
                    "enum": ["e1", "e2", "e3", "e4"],
                    "maxLength": 2,
                    "nullable": True,
                },
                "enum2": {"enum": [1, 2, 3]},
                "enum3": {"enum": ["e1", "e2", "e3"], "type": "string"},
            },
            "type": "object",
        }

        self.assertEqual(
            data["components"]["schemas"]["ModelWithEnumsApi.get"], expected_response
        )
        self.assertEqual(
            data["components"]["schemas"]["ModelWithEnumsApi.post"], expected_response
        )

        REST Api: Test model with enum OAS
        
tests/test_api.py