{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "required": [
        "config",
        "inputs"
    ],
    "type": "object",
    "properties": {
        "inputs": {
            "required": [
                "anatomical"
            ],
            "type": "object",
            "properties": {
                "anatomical": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti",
                                "dicom"
                            ]
                        }
                    }
                }
            }
        },
        "config": {
            "required": [
                "brainstem_structures",
                "license_reference",
                "register_surfaces",
                "convert_surfaces",
                "license_email",
                "subject_id",
                "convert_volumes",
                "reconall_options",
                "license_number",
                "license_key",
                "convert_stats",
                "hippocampal_subfields"
            ],
            "type": "object",
            "properties": {
                "brainstem_structures": {
                    "default": true,
                    "type": "boolean"
                },
                "license_reference": {
                    "type": "string"
                },
                "register_surfaces": {
                    "default": true,
                    "type": "boolean"
                },
                "convert_surfaces": {
                    "default": true,
                    "type": "boolean"
                },
                "license_email": {
                    "type": "string"
                },
                "subject_id": {
                    "type": "string"
                },
                "convert_volumes": {
                    "default": true,
                    "type": "boolean"
                },
                "reconall_options": {
                    "default": "-all -qcache",
                    "type": "string"
                },
                "license_number": {
                    "type": "string"
                },
                "license_key": {
                    "type": "string"
                },
                "convert_stats": {
                    "default": true,
                    "type": "boolean"
                },
                "hippocampal_subfields": {
                    "default": true,
                    "type": "boolean"
                }
            }
        }
    },
    "title": "Invocation manifest for FreeSurfer (v6.0.0): Recon-All"
}