Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appsemble/schemas

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsemble/schemas

JSON schemas used by Appsemble.

  • 0.0.0
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Appsemble Schemas

JSON schemas used by Appsemble.

These schemas follow the Swagger specification.

Installation

Note: As long as this package hasn't been published, it should be installed directly from the Git repository.

JavaScript (npm)

npm install --save @appsemble/schemas

Python

Test cases for this package depend on unicode support in YAML. In order to support this, pyyaml must be built with libyaml-dev installed.

sudo apt-get install libyaml-dev
pip install appsemble-schemas

Usage

JavaScript (webpack)

Add the following section to your wepback configuration:

module: {
  rules: [
    {
      test: /\.yaml$/,
      use: [
        {loader: 'json-loader'},
        {loader: 'yaml-loader'},
      ],
    },
  ],
},

Then simply import the schema:

import createValidator from '@appsemble/schemas';
import appSchema from '@appsemble/schemas/appsemble/schemas/app.yaml'


const validator = createValidator(appSchema);

Python

import jsonschema
from appsemble import schemas


app_schema = schemas.get('app')
validator = jsonschema.Draft4Validator(app_schema)

Keywords

FAQs

Package last updated on 21 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc