sphinx-contrib / openapi

OpenAPI (fka Swagger) spec renderer for Sphinx.
https://sphinxcontrib-openapi.readthedocs.io
BSD 2-Clause "Simplified" License
111 stars 81 forks source link

TypeError: unhashable type: 'dict' #144

Open tnozicka opened 1 year ago

tnozicka commented 1 year ago

I've tried to use the sphinxcontrib.openapi on an openapi v2 received from kubernetes apiserver (kubectl get --raw /openapi/v2 | yq -Poy) apiserver but it failed with

Sphinx parallel build error:
TypeError: unhashable type: 'dict'

unfortunately, there is no context in the error message to help assess which part of the file breaks it.

The corresponding rst file looks like

API Reference
=============

.. openapi:: kube.yaml

and the kube.yaml is attached within kube.zip