Skip to main content

A python wrapper over a dynamic library build of oas_yaml_combine from openapi-utils

Project description

OasYamlCombinePy

A wrapper over a dynamic library build of openapi-utils

Takes input .yaml file and follows references to inline everything in a single output .yaml file Tool can resolve local refs (refs pointing to objects in the same file) and remote refs (refs pointing to object in other files)

requirements

  • liboasyamlcombine.so from openapi-utils needs to be placed in the vendor directory (can be obtained from "Releases")
  • python >=3.8
  • OS needs to support .so (linux, unix, etc.)

usage

The project can be used as either as a cmd which behaves similarily to a cmd from openapi-utils, or as library exposing resolve_references function

cmd arguments

  • help - help
  • input - path to input file that has refs that need to be resolved. When not provided, stdin is used
  • output - path to output file to which input file with resolved refs should be saved. When not provided, stdout is used
  • refsdir - path to directory where files containing remote refs are stored. When not provided a directory of input-file is used
  • inlinelocal - (default: False) when set to True local refs are replaced with local objects, otherwise local refs stay in place
  • inlineremote - (default: False) when set to True remote refs are replaced with remote objects, otherwise remote refs stay in place
  • keeplocal - (default: False) when set to True along with inlinelocal keeps local reference objects after inlining, otherwise deletes them. When set to True with inlinelocal set to false does nothing to prevent from making dangling local references, and therefore creating incorrect specifications

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

oas_yaml_combine_py-0.0.2.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oas_yaml_combine_py-0.0.2-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oas_yaml_combine_py-0.0.2.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for oas_yaml_combine_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 755bad59e2a320cf91c9589adcc57ab4745c1403508a4deb8085e7ec1500a34a
MD5 5e091867286e0a208df824153db8411f
BLAKE2b-256 7aed2068bf91aaefd492c07e2b08ad83f1d3013e5da541a862cbfafc228d4953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oas_yaml_combine_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40fe44c12cf941cb84acf11701e4fb2de47de389a1a42c2a6b2218b2c8d1d433
MD5 e4e6e5373df00296d1e6f983ca5f5582
BLAKE2b-256 af8b349b8d7e451f01cf45034269978a2b866035b26415b1f6b37b347e39546a

See more details on using hashes here.

Supported by

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