{"_id":"@appsemble/schemas","_rev":"11-fb744cb9526e59e4388d68ff8214f845","name":"@appsemble/schemas","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0":{"name":"@appsemble/schemas","version":"0.0.0","keywords":["appsemble"],"author":{"name":"Appsemble","email":"support@appsemble.com"},"license":"MIT","_id":"@appsemble/schemas@0.0.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"dist":{"shasum":"cae8ce6eeff3743c805c49121bb183a7ee96b872","tarball":"https://registry.npmjs.org/@appsemble/schemas/-/schemas-0.0.0.tgz","integrity":"sha512-zeg2q3F59Sz5vY5TqpI0O8/Mf90mPzgJndusjO8UZvtj/jjanD4DkEkNrCgV7/sgfakv3yTv9T8C2zpA6cSIIw==","signatures":[{"sig":"MEUCIQC903fDdovpRYhiFdST8SznQMg8dNS6n9GofGGuHZ5flwIgdyT1udP6iRbk52JeSpahZ2Vw0PROkYKvsLcc929NFac=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"appsemble/schemas/index.js","gitHead":"597317bc740f22b6d78b1b80f811500b7a34d87e","scripts":{"test":"run-p -cl eslint mocha","mocha":"mocha","eslint":"eslint --color --max-warnings 0 .","mocha:w":"mocha --watch"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"deprecated":"This package is for the old Appsemble and is no longer maintained.","_npmVersion":"5.0.3","description":"JSON schemas used by Appsemble.","directories":{},"_nodeVersion":"8.1.2","dependencies":{"ajv":"^5.1.3"},"devDependencies":{"mocha":"^3.4.1","eslint":"^3.19.0","js-yaml":"^3.8.4","npm-run-all":"^4.0.2","eslint-plugin-import":"^2.2.0","eslint-config-airbnb-base":"^11.2.0"},"_npmOperationalInternal":{"tmp":"tmp/schemas-0.0.0.tgz_1498039658842_0.2641481067985296","host":"s3://npm-registry-packages"}},"0.0.1":{"name":"@appsemble/schemas","version":"0.0.1","keywords":["appsemble"],"author":{"name":"Appsemble","email":"support@appsemble.com"},"license":"MIT","_id":"@appsemble/schemas@0.0.1","maintainers":[{"name":"kvdb","email":"kvdb@d-centralize.nl"},{"name":"mthjs","email":"m.a.vandenworm@gmail.com"},{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"dist":{"shasum":"a1009a0af843ae8e3caa0cbf55f7399ab65b09a2","tarball":"https://registry.npmjs.org/@appsemble/schemas/-/schemas-0.0.1.tgz","integrity":"sha512-LRc2HXh8GVqRuTpEjsqatF41qd1zZs3GT0P4bTrAWsR3zqMHOXirqKzWxS/yLFOvrURdwTVWbLl7e3gHFBhJkg==","signatures":[{"sig":"MEYCIQCpaTBdR7/spY2e01tccPu0PLSC+CAV6Cj+wQ9Ap71pEAIhANJJ3yWUMDJPRhwRpzTfoIEp9gP1+7GjFo9AtQZRkIav","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"appsemble/schemas/index.js","gitHead":"04ed9e9eba85f1767f8900483b574eba529d10a6","scripts":{"test":"run-p -cl eslint mocha","mocha":"mocha","start":"mocha --watch","eslint":"eslint --color --max-warnings 0 ."},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"deprecated":"This package is for the old Appsemble and is no longer maintained.","_npmVersion":"5.4.0","description":"JSON schemas used by Appsemble.","directories":{},"_nodeVersion":"8.4.0","dependencies":{"ajv":"^5.1.3"},"devDependencies":{"mocha":"^3.4.1","eslint":"^3.19.0","js-yaml":"^3.8.4","npm-run-all":"^4.0.2","eslint-plugin-import":"^2.2.0","eslint-config-airbnb-base":"^11.2.0"},"_npmOperationalInternal":{"tmp":"tmp/schemas-0.0.1.tgz_1504521475289_0.7333287240471691","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-06-21T10:07:39.828Z","modified":"2025-06-01T07:00:55.869Z","0.0.0":"2017-06-21T10:07:39.828Z","0.0.1":"2017-09-04T10:37:56.303Z"},"author":{"name":"Appsemble","email":"support@appsemble.com"},"license":"MIT","keywords":["appsemble"],"description":"JSON schemas used by Appsemble.","maintainers":[{"email":"kvdb@d-centralize.nl","name":"kvdb"},{"email":"info@appsemble.com","name":"appsemble-bot"},{"email":"koen@kschellingerhout.nl","name":"ekhorn"}],"readme":"# Appsemble Schemas\n\n> JSON schemas used by Appsemble.\n\nThese schemas follow the [Swagger specification][swagger specification].\n\n\n## Installation\n\n> **Note**: As long as this package hasn't been published, it should be installed directly from the Git repository.\n\n\n### JavaScript (npm)\n\n```\nnpm install --save @appsemble/schemas\n```\n\n\n### Python\n\nTest cases for this package depend on unicode support in YAML. In order to support this, `pyyaml` must be built with `libyaml-dev` installed.\n\n```\nsudo apt-get install libyaml-dev\npip install appsemble-schemas\n```\n\n\n## Usage\n\n### JavaScript (webpack)\n\nAdd the following section to your wepback configuration:\n\n```javascript\nmodule: {\n  rules: [\n    {\n      test: /\\.yaml$/,\n      use: [\n        {loader: 'json-loader'},\n        {loader: 'yaml-loader'},\n      ],\n    },\n  ],\n},\n```\n\nThen simply import the schema:\n\n```javascript\nimport createValidator from '@appsemble/schemas';\nimport appSchema from '@appsemble/schemas/appsemble/schemas/app.yaml'\n\n\nconst validator = createValidator(appSchema);\n```\n\n\n### Python\n\n```python\nimport jsonschema\nfrom appsemble import schemas\n\n\napp_schema = schemas.get('app')\nvalidator = jsonschema.Draft4Validator(app_schema)\n```\n\n\n[swagger specification]: http://swagger.io/specification/\n","readmeFilename":"README.md"}