JSPM

@asyncapi/specs

2.14.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1968730
  • Score
    100M100P100Q204056F
  • License Apache-2.0

AsyncAPI schema versions

Package Exports

  • @asyncapi/specs
  • @asyncapi/specs/index.js
  • @asyncapi/specs/schemas/2.0.0.json
  • @asyncapi/specs/schemas/2.1.0.json
  • @asyncapi/specs/schemas/2.2.0.json
  • @asyncapi/specs/schemas/2.3.0.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@asyncapi/specs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm npm

AsyncAPI

This package provides all the versions of the AsyncAPI schema.

Installation

NodeJS

npm install @asyncapi/specs

Go

go get github.com/asyncapi/spec-json-schemas/v2

Usage

NodeJS

Grab a specific AsyncAPI version:

const asyncapi = require('@asyncapi/specs/schemas/2.0.0');

// Do something with the schema.

Get a list of versions:

const versions = require('@asyncapi/specs');

console.log(versions);
// Outputs:
//
// {
//   '1.0.0': [Object],
//   '1.1.0': [Object]
// }

const asyncapi = versions['1.1.0'];

// Do something with the schema.

Go

Grab a specific AsyncAPI version:

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
}