{
  "title": "Schema for Executing Serverless offline apps",
  "description": "Serverless offline execution options",
  "cli": "nx",
  "type": "object",
  "properties": {
    "buildTarget": {
      "type": "string",
      "description": "The target to run to build you the app"
    },
    "waitUntilTargets": {
      "type": "array",
      "description": "The targets to run to before starting the node app",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "config": {
      "type": "string",
      "description": "The serverless.yml location"
    },
    "location": {
      "type": "string",
      "description": "The src file location"
    },
    "host": {
      "type": "string",
      "default": "localhost",
      "description": "The host to inspect the process on"
    },
    "httpPort": {
      "type": "number",
      "default": 7777,
      "description": "HTTP port to listen on. Setting port to 0 will assign random free ports to all forked processes."
    },
    "lambdaPort": {
      "type": "number",
      "description": "Lambda HTTP port to listen on. Setting port to 0 will assign random free ports to all forked processes."
    },
    "runtimeArgs": {
      "type": "array",
      "description": "Extra args passed to the node process",
      "default": [],
      "items": {
        "type": "string"
      }
    },
    "args": {
      "type": "array",
      "description": "Extra args when starting the app",
      "default": [],
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": true,
  "required": ["buildTarget", "config", "location"]
}
