{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "required": [
        "config",
        "inputs"
    ],
    "type": "object",
    "properties": {
        "inputs": {
            "required": [
                "api_key",
                "freesurfer_license"
            ],
            "type": "object",
            "properties": {
                "t1w_anatomy": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "api_key": {
                    "type": "object",
                    "properties": {}
                },
                "t2w_anatomy": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "freesurfer_license": {
                    "type": "object",
                    "properties": {}
                }
            }
        },
        "config": {
            "required": [
                "save_outputs",
                "freesurfer",
                "save_intermediate_work",
                "intermediate_folders",
                "intermediate_files"
            ],
            "type": "object",
            "properties": {
                "save_outputs": {
                    "default": false,
                    "type": "boolean"
                },
                "freesurfer": {
                    "default": true,
                    "type": "boolean"
                },
                "intermediate_files": {
                    "default": "ref_image_corrected_brain.nii.gz",
                    "type": "string"
                },
                "save_intermediate_work": {
                    "default": false,
                    "type": "boolean"
                },
                "intermediate_folders": {
                    "default": "",
                    "type": "string"
                }
            }
        }
    },
    "title": "Invocation manifest for fMRIPREP: A Robust Preprocessing Pipeline for fMRI Data"
}