https://github.com/ahmadnassri/node-cloudevents-schemas
CloudEvents Schema
https://github.com/ahmadnassri/node-cloudevents-schemas
node oas openapi schema
Last synced: 5 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-07T20:53:14.000Z (over 1 year ago)
- Last Synced: 2025-08-08T12:10:00.074Z (11 months ago)
- Topics: node, oas, openapi, schema
- Language: Makefile
- Homepage:
- Size: 342 KB
- Stars: 1
- Watchers: 2
- 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