sg-schemas

2.2.2 • Public • Published

sg-schemas

Build Status npm Version JS Standard

Scheams for SUGOS

Installation

$ npm install sg-schemas --save

Schemas

Examples

Example Module Spec
{
  "name": "example-my-drone-module",
  "version": "1.0.0",
  "desc": "Example of module for SUGO-Actor",
  "methods": {
    "takeOff": {
      "desc": "Take off from the land.",
      "params": [
        {
          "name": "attitude",
          "type": "string",
          "desc": "Attitude to stop"
        }
      ]
    },
    "goHome": {
      "desc": "Go to home position and land on.",
      "params": [],
      "return": {
        "type": "boolean",
        "desc": "Succeed or not"
      }
    }
  }
}
Example Perform Config
{
  "interface": "bash",
  "method": "spawn",
  "params": [
    "ls",
    [
      "-la"
    ],
    {
      "env": {
        "HOME": "/home/hoge"
      }
    }
  ]
}

License

This software is released under the Apache-2.0 License.

Links

Readme

Keywords

Package Sidebar

Install

npm i sg-schemas

Weekly Downloads

0

Version

2.2.2

License

Apache-2.0

Last publish

Collaborators

  • realglobe