Skip to content

Commit 02e462d

Browse files
committed
separate spec files documentation
1 parent 48b33c5 commit 02e462d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ Validate spec:
2323

2424
from openapi_spec_validator import validate_spec
2525

26-
validate_spec(spec)
26+
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')
2736
```
2837

2938
You can also validate spec from url:

0 commit comments

Comments
 (0)