def METHOD_NAME(self):
    try:
        schemas.SearchFlagsSchema(
            limit=15,
            user_id=123,
            order=schemas.SortOrderType.desc,
            query="search term",
            is_active=True
        )
    except ValidationError:
        assert False, "Valid data should not raise ValidationError"
    try:
        schemas.SearchFlagsSchema(
            limit=500,
            user_id=-1,
            order="invalid",
            query="a" * 201,
            isActive=None
        )
    except ValidationError as e:
        assert len(e.errors()) == 2
        assert e.errors()[0]["ctx"] == {'limit_value': 200}
        assert e.errors()[0]["type"] == "value_error.number.not_le"
        assert e.errors()[1]["msg"] == "value is not a valid enumeration member; permitted: 'ASC', 'DESC'"
        assert e.errors()[1]["type"] == "type_error.enum"
    else:
        assert False, "Invalid data should raise ValidationError"