You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/special_topics.rst
+55Lines changed: 55 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,3 +43,58 @@ JSON
43
43
import json
44
44
45
45
json.dumps(spec.to_dict())
46
+
47
+
Documenting Top-level Components
48
+
--------------------------------
49
+
50
+
To add objects within the top-level ``components`` object, pass the
51
+
components to the ``APISpec`` as a keyword argument.
52
+
53
+
Here is an example that includes a `Security Scheme Object <https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#securitySchemeObject>`_.
0 commit comments