ovh / python-ovh

Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
https://pypi.org/project/ovh/
Other
278 stars 76 forks source link

Wrapper doesn't respect https://api.ovh.com/ documentation with None value #99

Closed nledez closed 2 years ago

nledez commented 3 years ago

For example:

result = client.get('/domain/zone/hashicorp4noobs.fr/record', 
    fieldType=None, // Filter the value of fieldType property (like) (type: zone.NamedResolutionFieldTypeEnum)
    subDomain=None, // Filter the value of subDomain property (like) (type: string)
)

Return a:

ovh.exceptions.BadParametersError: [fieldType] Given data (None) does not belong to the NamedResolutionFieldTypeEnum enumeration
OVH-Query-ID: EU.ext-2.612b4d7e.29385.a922ffb9-cbe4-4e2c-bca3-5888c1cbc55e
rbeuque74 commented 2 years ago

Hello, Fixed in v0.6.0 per #102