Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadnassri/node-cloudevents-schemas
CloudEvents Schema
https://github.com/ahmadnassri/node-cloudevents-schemas
node oas openapi schema
Last synced: about 1 month ago
JSON representation
CloudEvents Schema
- Host: GitHub
- URL: https://github.com/ahmadnassri/node-cloudevents-schemas
- Owner: ahmadnassri
- License: mit
- Created: 2020-11-06T02:25:36.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T20:00:56.000Z (5 months ago)
- Last Synced: 2024-10-01T00:06:07.121Z (about 2 months ago)
- Topics: node, oas, openapi, schema
- Language: Makefile
- Homepage:
- Size: 341 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Node Lib Template
node library project template
[![license][license-img]][license-url]
[![release][release-img]][release-url]
[![semantic][semantic-img]][semantic-url]This package publishes all versions of the [CloudEvents][] Schema JSON spec
.
├── LICENSE
├── index.js
└── schemas
├── latest.json
├── 1.0.2.json
├── 1.0.1.json
├── 1.0.0.json
└── 1.0.json## How
``` js
// directly require the JSON schema files
const latest = require('cloudevents-schemas/schemas/latest.json')
const versioned = require('cloudevents-schemas/schemas/1.0.json')// require all the schemas in one object
const schemas = require('cloudevents-schemas')/** schemas is an object with the following shape:
{
latest: ...
1.0: ...
1.0.0: ...
1.0.1: ...
1.0.2: ...
}
*/
```[CloudEvents]: https://cloudevents.io/
----
> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) •
> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)[license-url]: LICENSE
[license-img]: https://badgen.net/github/license/ahmadnassri/node-cloudevents-schemas[release-url]: https://github.com/ahmadnassri/node-cloudevents-schemas/releases
[release-img]: https://badgen.net/github/release/ahmadnassri/node-cloudevents-schemas[semantic-url]: https://github.com/ahmadnassri/node-cloudevents-schemas/actions?query=workflow%3Arelease
[semantic-img]: https://badgen.net/badge/📦/semantically%20released/blue