Skip to content

Method list_acl_entries is broken #96

@davidglvn

Description

@davidglvn

Version

4.1.1

What happened

Finally got to test the latest updates, but list_acl_entries is broken. Running identical code to example:

        try:
            # List ACL entries
            api_response = api_instance.list_acl_entries(service_id, acl_id)
            pprint(api_response)
        except fastly.ApiException as e:
            print("Exception when calling AclEntryApi->list_acl_entries: %s\n" % e)

And getting the following error:

Invalid inputs given to generate an instance of 'AclEntry'. The input data was invalid for the allOf schema 'AclEntry' in the composed schema 'AclEntryResponse'. Error=Invalid type for variable 'negated'. Required value type is int and passed type was str at ['received_data'][0]['negated']
fastly.exceptions.ApiTypeError: Invalid type for variable 'negated'. Required value type is int and passed type was str at ['received_data'][0]['negated']

The values of service_id and acl_id are valid IDs and type of str, currently using requests workaround:

    response = requests.get(
        "{}/service/{}/acl/{}/entries".format(FASTLY_API_URL, service_id, acl_id),
        headers={
            "Fastly-Key": FASTLY_API_KEY,
            "Accept": "application/json"
        },
        timeout=5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions