open-zaak / open-zaak

Open Zaak is a modern, open-source data- and services-layer to enable zaakgericht werken, a Dutch approach to case management.
Other
38 stars 35 forks source link

DRC OpenAPI spec schema validation error #1702

Open edgarvonk opened 2 weeks ago

edgarvonk commented 2 weeks ago

Product versie / Product version

1.13.0

Omschrijf het probleem / Describe the bug

The new DRC API OpenAPI spec contains a schema validation error for the /import/{uuid}/upload: endpoint. The schema response type is set to null, which is not allowed:

content:
        application/json:
         schema: null         

For now we implemented a workaround by disabling the schema validation:

   // this OpenAPI spec contains a schema validation error: `schema: null`
   // so we disable the schema validation for this spec until this is fixed in a future version of this spec
   validateSpec.set(false)

Stappen om te reproduceren / Steps to reproduce

  1. Generate Java stub code from the DRC OpenAPI spec using https://github.com/OpenAPITools/openapi-generator
  2. A schema validation error is shown. The Java stub code is not generated

Verwacht gedrag / Expected behavior

No schema validation error. Java code is generated correctly.