There was an error while loading. Please reload this page.
1 parent 48b33c5 commit 02e462dCopy full SHA for 02e462d
1 file changed
README.md
@@ -23,7 +23,16 @@ Validate spec:
23
24
from openapi_spec_validator import validate_spec
25
26
-validate_spec(spec)
+validate_spec(spec_dict)
27
+```
28
+
29
+Add `spec_url` to validate spec with relative files:
30
31
+```python
32
33
+from openapi_spec_validator import validate_spec
34
35
+validate_spec(spec_dict,spec_url='file:///path/to/spec/openapi.yaml')
36
```
37
38
You can also validate spec from url:
0 commit comments