lvbag / BAG-API

Welkom op het platform waar de technische documentatie over de BAG API Individuele Bevragingen gepubliceerd wordt.
55 stars 19 forks source link

GET '/panden' parameter is type of 'date' but accepts only items of '#/components/schemas/StatusPand' #78

Open nickvanbeek-topicus opened 1 year ago

nickvanbeek-topicus commented 1 year ago

Hi,

We encountered an issue after we generated our client based on the api spec available on https://api.bag.kadaster.nl/lvbag/individuelebevragingen/v2/openapi.yaml. The client wouldn't compile. The reason behind it is that the parameter 'statusPand' of the GET /panden call expects an array of dates with item definition of '#/components/schemas/StatusPand'. The generated code wants to convert the list of 'StatusPand' to dates. If we change the 'format' in the spec to 'string' this error is gone.

  - name: statusPand
    in: query
    description: Status van het pand.
    required: false
    style: form
    explode: true
    schema:
      minItems: 1
      type: array
      format: **date**
      items:
        $ref: '#/components/schemas/StatusPand'

Would you please fix this so that we don't have to manually change the spec? It could also be that the service implementation is based on the wrong spec and should also be fixed accordingly.

Thanks.

Best regards,

Nick van Beek Topicus .Finance