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
and `OpenAPI 3.1 <https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md>`__
26
+
specification. The validator aims to check for full compliance with the Specification.
28
27
29
28
Installation
30
29
############
@@ -73,7 +72,7 @@ or more pythonic way:
73
72
Examples
74
73
********
75
74
76
-
By default, OpenAPI v3 syntax is expected. To validate an OpenAPI v3 spec:
75
+
By default, OpenAPI v3.1 syntax is expected. To validate an OpenAPI v3.1 spec:
77
76
78
77
.. code:: python
79
78
@@ -91,7 +90,11 @@ By default, OpenAPI v3 syntax is expected. To validate an OpenAPI v3 spec:
91
90
...
92
91
OpenAPIValidationError: 'openapi'is a required property
93
92
94
-
In order to validate a Swagger / OpenAPI 2.0 spec file, import ``validate_v2_spec`` instead of ``validate_spec``. You can also explicitly import ``validate_v3_spec`` if you want to disambiguate the expected version.
93
+
In order to validate a Swagger / OpenAPI 2.0 spec file, import ``validate_v2_spec`` instead of ``validate_spec``.
94
+
In order to validate a OpenAPI 3.0 spec file, import ``validate_v30_spec`` instead of ``validate_spec``.
95
+
96
+
You can also explicitly import ``validate_v31_spec`` if you want to disambiguate the expected version or
97
+
explicitly import ``validate_v3_spec`` which is a shortcut to the latest v3 release.
95
98
96
99
Add ``spec_url`` to validate spec with relative files:
0 commit comments