Skip to main content

OpenAPI spec compare

Project description

vedro-spec-compare

PyPI Python Version

Description

vedro-spec-compare is a tool to compare two OpenAPI specs and generate a coverage report

Installation

pip3 install vedro-spec-compare

Usage

Help

vsc -h
usage: vsc [-h] {coverage} ...

vedro-spec-compare commands

positional arguments:
  {coverage}  Available commands
    coverage  Generate coverage report

options:
  -h, --help  show this help message and exit

Coverage

vsc coverage -h
usage: vsc coverage [-h] [--report-path REPORT_PATH] golden_spec_path testing_spec_path

positional arguments:
  golden_spec_path      Path to the golden OpenAPI spec
  testing_spec_path     Path to the testing OpenAPI spec

options:
  -h, --help            show this help message and exit
  --report-path REPORT_PATH
                        The path of the coverage report

Examples

From yml files

vsc coverage golden_spec.yml testing_spec.yml
google-chrome coverage.html 

With report path

vsc coverage golden_spec.yml testing_spec.yml --report-path coverage_report.html
google-chrome coverage_report.html 

From urls

vsc coverage https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore-expanded.yaml https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml
google-chrome coverage.html 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vedro_spec_compare-0.0.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

vedro_spec_compare-0.0.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file vedro_spec_compare-0.0.2.tar.gz.

File metadata

  • Download URL: vedro_spec_compare-0.0.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for vedro_spec_compare-0.0.2.tar.gz
Algorithm Hash digest
SHA256 92b0add97fcc4b1af57fd836897412933ed4ef97d7b34c51973644e1ade5386b
MD5 4a00fb0b24699b54601f941939bdebc9
BLAKE2b-256 2cd3037c6539554803081b657cac0e91769f0a67af0f1607c205effb47a4a02b

See more details on using hashes here.

File details

Details for the file vedro_spec_compare-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for vedro_spec_compare-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df30d3df6eb75cfe56d0686d52bfd8c16ba885f95c01ed69a1684bb1680062a3
MD5 6042994f6d1d77246c6f06122525373b
BLAKE2b-256 f8cbb645b8bff2486d0be65e22bf40d113909dba1e73cd38c1021ad0d1483b77

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page