ladestationen-api icon indicating copy to clipboard operation
ladestationen-api copied to clipboard

StationOverviewFields: domain field not nullable

Open maximilian-franz opened this issue 2 years ago • 0 comments

When executing this code:

import json
from pprint import pprint
from deutschland.ladestationen.api import default_api

api_instance = default_api.DefaultApi()
geometry = {
    "xmin": 648310.999314399,
    "xmax": 1708898.35458854,
    "ymin": 5998767.0224341,
    "ymax": 7353682.52593813,
}
api_response = api_instance.query_get(json.dumps(geometry), f="json")
pprint(api_response)

I get this error:

deutschland.ladestationen.exceptions.ApiTypeError: Invalid type for variable 'domain'. Required value type is str and passed type was NoneType at ['received_data']['fields'][0]['domain']

So it seems that the domain field isn't actually nullable as described in the OpenAPI spec.

maximilian-franz avatar Oct 30 '23 12:10 maximilian-franz