{
  "name": "{{ '{{' }} agave.appsPrefix {{ '}}' }}-{{ slugify_name }}",
  "version": "{{ agave_version }}",
  "label": "{{ description }}",
  "defaultNodeCount": 1,
  "defaultMemoryPerNode": 1,
  "defaultProcessorsPerNode": 1,
  "executionType": "HPC",
  "parallelism": "SERIAL",
  "checkpointable": false,
  "executionSystem": "{{ '{{' }} agave.executionSystem {{ '}}' }}",
  "deploymentPath": "{{ '{{' }} agave.appsDir {{ '}}' }}/{{ slugify_name }}-{{ version }}",
  "deploymentSystem": "{{ '{{' }} agave.deploymentSystem {{ '}}' }}",
  "templatePath": "{{ slugify_name }}.sh",
  "testPath": "test/test.sh",
  "inputs": [
    {% for key, value in inputs.items() %}
    { "id": "{{ key }}",
      "value": {
        "required": {{ 'true' if value.required else 'false' }},
        "default": "{% if not value.required and value.default -%}{{ value.default }}{%- endif %}"
      }
    }{{ ',' if not loop.last }}
    {% endfor %}
  ],
  "parameters": [
    {% for key, value in parameters.items() %}
    { "id": "{{ key }}",
      "value": {
        "required": {{ 'true' if value.required else 'false' }},
        {% if not value.required and value.default %}
        "default": {% if value.type in ('string','File','Directory','Any') -%}"{{ value.default }}"{%- else -%}{{ value.default }}{%- endif -%},
        {% endif %}
        "type": "{{ 'string' if value.type in ('string','File','Directory','Any') else 'number' }}"
      }
    },
    {% endfor %}
    { "id": "exec_method",
      "value": {
        "required": false,
        "default": "auto",
        "type": "string"
      }
    },
    { "id": "exec_init",
      "value": {
        "required": false,
        "default": ":",
        "type": "string"
      }
    }
  ]
}
