No project description provided
Project description
# OpenAPI Spec validator
[](https://pypi.python.org/pypi/openapi-spec-validator)
[](https://travis-ci.org/p1c2u/openapi-spec-validator)
[](https://codecov.io/github/p1c2u/openapi-spec-validator?branch=master)
[](https://pypi.python.org/pypi/openapi-spec-validator)
[](https://pypi.python.org/pypi/openapi-spec-validator)
[](https://pypi.python.org/pypi/openapi-spec-validator)
## About
OpenAPI Spec Validator is a Python library that validates OpenAPI Specs against the [OpenAPI 3.0.0](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md) specification. The validator aims to check for full compliance with the Specification.
## Installation
$ pip install openapi-spec-validator
## Usage
Validate spec:
```python
from openapi_spec_validator import validate_spec
validate_spec(spec)
```
You can also validate spec from url:
```python
from openapi_spec_validator import validate_spec_url
validate_spec_url('http://example.com/openapi.json')
```
If you want to iterate through validation errors:
```python
from openapi_spec_validator import openapi_v3_spec_validator
errors_iterator = openapi_v3_spec_validator.iter_errors(spec)
```
## License
Copyright (c) 2017, Artur Maciag, All rights reserved.
Apache v2
[](https://pypi.python.org/pypi/openapi-spec-validator)
[](https://travis-ci.org/p1c2u/openapi-spec-validator)
[](https://codecov.io/github/p1c2u/openapi-spec-validator?branch=master)
[](https://pypi.python.org/pypi/openapi-spec-validator)
[](https://pypi.python.org/pypi/openapi-spec-validator)
[](https://pypi.python.org/pypi/openapi-spec-validator)
## About
OpenAPI Spec Validator is a Python library that validates OpenAPI Specs against the [OpenAPI 3.0.0](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md) specification. The validator aims to check for full compliance with the Specification.
## Installation
$ pip install openapi-spec-validator
## Usage
Validate spec:
```python
from openapi_spec_validator import validate_spec
validate_spec(spec)
```
You can also validate spec from url:
```python
from openapi_spec_validator import validate_spec_url
validate_spec_url('http://example.com/openapi.json')
```
If you want to iterate through validation errors:
```python
from openapi_spec_validator import openapi_v3_spec_validator
errors_iterator = openapi_v3_spec_validator.iter_errors(spec)
```
## License
Copyright (c) 2017, Artur Maciag, All rights reserved.
Apache v2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openapi_spec_validator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openapi_spec_validator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
875016e4d8e738883f7192af04e80d256db6ced85e3b2e50239c8701cb9820d5
|
|
| MD5 |
ce7c7857f4e441aeeddb7d8c158f4ae7
|
|
| BLAKE2b-256 |
f999712c0f6c6dda846e47e4cfa17b496ab24d85ada6b11cff00df71299ea7f5
|