@asyncapi/specs
Advanced tools
Comparing version 2.13.1 to 2.13.2
{ | ||
"name": "@asyncapi/specs", | ||
"version": "2.13.1", | ||
"version": "2.13.2", | ||
"description": "AsyncAPI schema versions", | ||
@@ -49,3 +49,3 @@ "main": "index.js", | ||
{ | ||
"name": "2022-01-release", | ||
"name": "2022-04-release", | ||
"prerelease": true | ||
@@ -52,0 +52,0 @@ } |
@@ -9,2 +9,3 @@ ![npm](https://img.shields.io/npm/v/@asyncapi/specs?style=for-the-badge) ![npm](https://img.shields.io/npm/dt/@asyncapi/specs?style=for-the-badge) | ||
### NodeJS | ||
```bash | ||
@@ -14,4 +15,11 @@ npm install @asyncapi/specs | ||
### Go | ||
```bash | ||
go get github.com/asyncapi/spec-json-schemas/v2 | ||
``` | ||
## Usage | ||
### NodeJS | ||
Grab a specific AsyncAPI version: | ||
@@ -42,1 +50,19 @@ | ||
``` | ||
### Go | ||
Grab a specific AsyncAPI version: | ||
```go | ||
import "github.com/asyncapi/spec_json_schemas/v2" | ||
func Do() { | ||
schema, err := spec_json_schemas.Get("1.1.0") | ||
if err != nil { | ||
panic(err) | ||
} | ||
// Do something with the schema | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65
299175
14