{ "info": { "author": "Artur Maciag", "author_email": "maciag.artur@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "(This is a fork from https://github.com/p1c2u/openapi-spec-validator)\n\n# OpenAPI Spec validator\n\n[![Package Version](https://img.shields.io/pypi/v/openapi-spec-validator.svg)](https://pypi.python.org/pypi/openapi-spec-validator)\n[![Build Status](https://travis-ci.org/stableforks/stableforks-openapi-spec-validator.svg?branch=master)](https://travis-ci.org/stableforks/stableforks-openapi-spec-validator)\n[![Code Coverage](https://img.shields.io/codecov/c/github/stableforks/stableforks-openapi-spec-validator/master.svg?style=flat)](https://codecov.io/github/stableforks/stableforks-openapi-spec-validator?branch=master)\n[![PyPI Version](https://img.shields.io/pypi/pyversions/openapi-spec-validator.svg)](https://pypi.python.org/pypi/openapi-spec-validator)\n[![PyPI Format](https://img.shields.io/pypi/format/openapi-spec-validator.svg)](https://pypi.python.org/pypi/openapi-spec-validator)\n[![PyPI Status](https://img.shields.io/pypi/status/openapi-spec-validator.svg)](https://pypi.python.org/pypi/openapi-spec-validator)\n\n## About\n\nOpenAPI Spec Validator is a Python library that validates OpenAPI Specs against the [OpenAPI 2.0 (aka Swagger)](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md) and [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.\n\n## Installation\n\n $ pip install openapi-spec-validator\n\n## Usage\n\n### Command Line Interface\n\nStraight forward way:\n\n```bash\n$ openapi-spec-validator some.yaml\n```\n\nor more pythonic way:\n\n```bash\n$ python -m openapi_spec_validator some.yaml\n```\n\n### Examples\n\nValidate spec:\n\n```python\n\nfrom openapi_spec_validator import validate_spec\n\nvalidate_spec(spec_dict)\n```\n\nAdd `spec_url` to validate spec with relative files:\n\n```python\n\nfrom openapi_spec_validator import validate_spec\n\nvalidate_spec(spec_dict, spec_url='file:///path/to/spec/openapi.yaml')\n```\n\nYou can also validate spec from url:\n\n```python\n\nfrom openapi_spec_validator import validate_spec_url\n\nvalidate_spec_url('http://example.com/openapi.json')\n```\n\nIf you want to iterate through validation errors:\n\n```python\n\nfrom openapi_spec_validator import openapi_v3_spec_validator\n\nerrors_iterator = openapi_v3_spec_validator.iter_errors(spec)\n```\n\n## Related projects\n\n* [openapi-core](https://github.com/p1c2u/openapi-core) is a Python library that adds client-side and server-side support for the OpenAPI.\n\n## License\n\nCopyright (c) 2017, Artur Maciag, All rights reserved.\nApache v2\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stableforks/stableforks-openapi-spec-validator", "keywords": "", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "stableforks-openapi-spec-validator", "package_url": "https://pypi.org/project/stableforks-openapi-spec-validator/", "platform": "", "project_url": "https://pypi.org/project/stableforks-openapi-spec-validator/", "project_urls": { "Homepage": "https://github.com/stableforks/stableforks-openapi-spec-validator" }, "release_url": "https://pypi.org/project/stableforks-openapi-spec-validator/0.2.5/", "requires_dist": [ "jsonschema (<3)", "PyYAML (>=4.2b1)", "six", "pathlib ; python_version == \"2.7\"" ], "requires_python": "", "summary": "", "version": "0.2.5" }, "last_serial": 4862361, "releases": { "0.2.5": [ { "comment_text": "", "digests": { "md5": "86770667ce8f35784c538d911f8b8bb0", "sha256": "da6b13bcd19e8c554907f03a4405dadaa36b58731504c8d10ca253e5dbc1af95" }, "downloads": -1, "filename": "stableforks_openapi_spec_validator-0.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "86770667ce8f35784c538d911f8b8bb0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25104, "upload_time": "2019-02-24T23:56:08", "url": "https://files.pythonhosted.org/packages/d9/e3/a7a79dba7ddf70c381e80fb0033991550cb0e6e2c95e510d2e4d6bdc856c/stableforks_openapi_spec_validator-0.2.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc768f8bcbf554114e7d9cdfa98e68ad", "sha256": "5788ccab1d27305ef00324feb07cca5d749c63151dc21e2bb661006ae63b27b6" }, "downloads": -1, "filename": "stableforks-openapi-spec-validator-0.2.5.tar.gz", "has_sig": false, "md5_digest": "dc768f8bcbf554114e7d9cdfa98e68ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21671, "upload_time": "2019-02-24T23:56:10", "url": "https://files.pythonhosted.org/packages/0d/49/1629eb9086ebeda3ec8953966f56987062a2643fc74244f6e2c3d8204e7a/stableforks-openapi-spec-validator-0.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "86770667ce8f35784c538d911f8b8bb0", "sha256": "da6b13bcd19e8c554907f03a4405dadaa36b58731504c8d10ca253e5dbc1af95" }, "downloads": -1, "filename": "stableforks_openapi_spec_validator-0.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "86770667ce8f35784c538d911f8b8bb0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 25104, "upload_time": "2019-02-24T23:56:08", "url": "https://files.pythonhosted.org/packages/d9/e3/a7a79dba7ddf70c381e80fb0033991550cb0e6e2c95e510d2e4d6bdc856c/stableforks_openapi_spec_validator-0.2.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc768f8bcbf554114e7d9cdfa98e68ad", "sha256": "5788ccab1d27305ef00324feb07cca5d749c63151dc21e2bb661006ae63b27b6" }, "downloads": -1, "filename": "stableforks-openapi-spec-validator-0.2.5.tar.gz", "has_sig": false, "md5_digest": "dc768f8bcbf554114e7d9cdfa98e68ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21671, "upload_time": "2019-02-24T23:56:10", "url": "https://files.pythonhosted.org/packages/0d/49/1629eb9086ebeda3ec8953966f56987062a2643fc74244f6e2c3d8204e7a/stableforks-openapi-spec-validator-0.2.5.tar.gz" } ] }