Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewsomething/app-platform-json-schema
Tiny utility to generate a JSON Schema for the DigitalOcean App Spec from OpenAPI.
https://github.com/andrewsomething/app-platform-json-schema
digitalocean jsonschema visual-studio yaml
Last synced: about 1 month ago
JSON representation
Tiny utility to generate a JSON Schema for the DigitalOcean App Spec from OpenAPI.
- Host: GitHub
- URL: https://github.com/andrewsomething/app-platform-json-schema
- Owner: andrewsomething
- Created: 2022-12-25T19:11:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T22:34:42.000Z (3 months ago)
- Last Synced: 2024-10-01T05:01:16.999Z (about 1 month ago)
- Topics: digitalocean, jsonschema, visual-studio, yaml
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# app-platform-json-schema
Tiny utility to generate a JSON Schema for the DigitalOcean App Spec from OpenAPI.
```
$ node index.js --help
Usage: app-platform-json-schema [options]Options:
--spec Location of the bundled DigitalOcean OpenAPI spec; path or URL (Default: https://api-engineering.nyc3.digitaloceanspaces.com/spec-ci/DigitalOcean-public.v2.yaml)
--optput Path for output location (Default: app_spec.json)
```The outputted JSON Schema is suitable for use with the [Red Hat VS Code YAML plugin](https://github.com/redhat-developer/vscode-yaml#associating-a-schema-to-a-glob-pattern-via-yamlschemas)
to provide validation and auto-completion when editing an [App Spec for DigitalOcean's App Platform](https://docs.digitalocean.com/products/app-platform/reference/app-spec/).With the YAML plugin installed, you can associate the schema with `app.yaml` and `app.yml` files by adding the following to your VS Code [user and workspace settings](https://code.visualstudio.com/docs/getstarted/settings#_creating-user-and-workspace-settings):
```json
"yaml.schemas": {
"https://raw.githubusercontent.com/andrewsomething/app-platform-json-schema/main/app_spec.json": ["app.yaml", "app.yml"],
},
```