Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itolosa/discovery-converter
Google Discovery to JSON Schema
https://github.com/itolosa/discovery-converter
discovery gcp google google-cloud json json-schema
Last synced: 17 days ago
JSON representation
Google Discovery to JSON Schema
- Host: GitHub
- URL: https://github.com/itolosa/discovery-converter
- Owner: itolosa
- License: mit
- Created: 2024-08-25T17:10:52.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-25T20:27:03.000Z (4 months ago)
- Last Synced: 2024-10-31T03:42:01.021Z (2 months ago)
- Topics: discovery, gcp, google, google-cloud, json, json-schema
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discovery to JSON Schema Converter
[![codecov](https://codecov.io/github/itolosa/discovery-converter/graph/badge.svg?token=2KGGT1RWI4)](https://codecov.io/github/itolosa/discovery-converter)
The goal of this project is to provide a tool to convert Google Discovery documents to JSON Schemas,
so they can be used to validate JSON or YAML specs.It requires to create a property builder for every discovery document you want to convert.
There are some already converted schemas in the `schemas` directory.
You can also check the builders in the `discovery_converter/builders` directory.
## Usage
Clone this repository
```bash
git clone [email protected]:itolosa/discovery-converter.git
```Install the dependencies
```bash
poetry install
```Run the generator
```bash
poetry run python generate.py
```Check generated schemas in the `schemas` directory.
## Contributing
Feel free to contribute to this project by creating a new builder for a new discovery document.
You can also create a PR to improve the existing code or open an issue if you find a bug.