Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails when resolving refs #119

Closed
ddl-lgaddie opened this issue Sep 13, 2021 · 2 comments
Closed

Build fails when resolving refs #119

ddl-lgaddie opened this issue Sep 13, 2021 · 2 comments

Comments

@ddl-lgaddie
Copy link

method.setdefault('parameters', [])

make html

...
reading sources... [ 45%] reference/monitor/api                             
Exception occurred:
  File "/usr/local/lib/python3.9/site-packages/sphinxcontrib/openapi/utils.py", line 108, in normalize_spec
    method.setdefault('parameters', [])
AttributeError: 'str' object has no attribute 'setdefault'
The full traceback has been saved in /var/folders/wh/w0_d38p56yz3fqwjj39tcnsw0000gp/T/sphinx-err-o1xngntb.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [html] Error 2

reference/monitor/api.rst contains:

DMM Public APIs
===============

.. openapi:: /_static/api-specs/dmm-4.6/dmm.yaml
   :examples:

/_static/api-specs/dmm-4.6/dmm.yaml contains references like this one:

$ref: './drift_analyze.yaml#/components/schemas/driftAnalyzeRequest'

Where drift_analyze.yaml and other referenced files are in the same directory as dmm.yaml.

@ddl-lgaddie
Copy link
Author

I should mention that my specs are OpenAPI version 3.0.3.

@ddl-lgaddie
Copy link
Author

This is a duplicate of #107.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant