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.sofrom openapi-utils needs to be placed in thevendordirectory (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- helpinput- path to input file that has refs that need to be resolved. When not provided, stdin is usedoutput- path to output file to which input file with resolved refs should be saved. When not provided, stdout is usedrefsdir- path to directory where files containing remote refs are stored. When not provided a directory of input-file is usedinlinelocal- (default:False) when set toTruelocal refs are replaced with local objects, otherwise local refs stay in placeinlineremote- (default:False) when set toTrueremote refs are replaced with remote objects, otherwise remote refs stay in placekeeplocal- (default:False) when set toTruealong withinlinelocalkeeps local reference objects after inlining, otherwise deletes them. When set toTruewithinlinelocalset to false does nothing to prevent from making dangling local references, and therefore creating incorrect specifications
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 Distribution
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c8ac42b3efec51f9baaa5eac1e06b481c732b3f79f37f82fc6b96546250bc0d
|
|
| MD5 |
67b8c9e922d68e3ee48bc57a124209f3
|
|
| BLAKE2b-256 |
69c8ca69c3c9e7d205d8757df86d261ad6a4a9039938f8ff9f8d83e83e4027d9
|
File details
Details for the file oas_yaml_combine_py-0.0.1-py3-none-any.whl.
File metadata
- Download URL: oas_yaml_combine_py-0.0.1-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2442f19d28d5f95b9a3de27d9334c6f7190f5c8d5df39aefa126964f2c2b2661
|
|
| MD5 |
86f162691ad2ab83aa5a13a5f3f43edb
|
|
| BLAKE2b-256 |
d84a2c3529ff18597a75207f52f32ae808c37fe53b4b9b46b8cb42df95a454fd
|