-
Notifications
You must be signed in to change notification settings - Fork 80
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
Type error thrown when schema uses oneOf #112
Comments
This is certainly valid OpenAPI. |
This same issue occurs with "schema": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
} which should also be valid OpenAPI. Sphinx : 6.2.1 |
Can someone provide a minimal example of a full schema with this used that can be tested against? |
This might be related to #96 That issue has a possible workaround (the "experimental renderer") which I might try. @stephenfin I'll see if I can get a minimal example together. |
This issue seems to be related as well to #53, #54, and #113. The two latter also proposed fixing changes, though that was years ago, so I don't know if they can be copy-pasted. I'll definitely try the workaround mentioned in #96, but feel free to check out our current build failure on the PR linked to above where I mentioned this issue and let me know how I could help with a fix. |
If the contents of the log file are of any interest: sphinx-err-dzck2sih.log |
With the workaround in #96, the docs "build successfully", but I still see WARNING: unknown directive or role name: openapi:httpdomain
/home/fridolin/ixmp4/doc/source/devs/ixmp4.server/endpoints.rst:4: ERROR: Error in "openapi:httpdomain" directive:
unknown option: "examples".
.. openapi:httpdomain:: /openapi-v1.json
:examples:
:group: The error can be fixed by removing |
Signed-off-by: Stephen Finucane <[email protected]>
Resolved via #143 |
Will throw
Exception occurred: File "/Users/maxmurmann/opt/anaconda3/envs/bullhorn-apis/lib/python3.8/site-packages/sphinxcontrib/openapi/openapi30.py", line 282, in _httpresource type=param['schema']['type'], KeyError: 'type'
whereas I believe this should be a fine formatting for OpenAPI?
The text was updated successfully, but these errors were encountered: