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.1.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.1-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oas_yaml_combine_py-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6c8ac42b3efec51f9baaa5eac1e06b481c732b3f79f37f82fc6b96546250bc0d
MD5 67b8c9e922d68e3ee48bc57a124209f3
BLAKE2b-256 69c8ca69c3c9e7d205d8757df86d261ad6a4a9039938f8ff9f8d83e83e4027d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for oas_yaml_combine_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2442f19d28d5f95b9a3de27d9334c6f7190f5c8d5df39aefa126964f2c2b2661
MD5 86f162691ad2ab83aa5a13a5f3f43edb
BLAKE2b-256 d84a2c3529ff18597a75207f52f32ae808c37fe53b4b9b46b8cb42df95a454fd

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