{
  "$schema": "http://json-schema.org/schema",
  "$id": "neo-schematics://service",
  "title": "Neo Service Options Schema",
  "type": "object",
  "description": "Creates a service with structural comments",
  "properties": {
    "subpath": {
      "type": "string",
      "description": "The subpath of the service",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What subpath (app/<subpath>) would you like for the service?"
    },
    "type": {
      "type": "string",
      "default": "",
      "$default": {
        "$source": "argv",
        "index": 1
      },
      "enum": [
        "",
        "api",
        "sandbox",
        "util"
      ],
      "x-prompt": {
        "message": "Which type of service would you like to use?",
        "type": "list",
        "items": [
          {
            "value": "",
            "label": "Default Service"
          },
          {
            "value": "api",
            "label": "API Service"
          },
          {
            "value": "sandbox",
            "label": "Sandbox Service"
          },
          {
            "value": "util",
            "label": "Utility Service"
          }
        ]
      }
    },
    "skiputil": {
      "type": "boolean",
      "description": "Do not create utility service when creating a sandbox.",
      "default": false
    },
    "skipimport": {
      "type":"boolean",
      "description": "Do ont import service in other services.",
      "default": false
    },
    "project": {
      "type": "string",
      "description": "Generate in specific Angular CLI workspace project"
    },
    "debug": {
      "type": "boolean",
      "description": "Runs debug script for easier problem analysis",
      "default": false
    }
  },
  "required": [
    "subpath"
  ]
}