{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "required": [
        "config",
        "inputs"
    ],
    "type": "object",
    "properties": {
        "inputs": {
            "required": [
                "dcm2niix_input"
            ],
            "type": "object",
            "properties": {
                "dcm2niix_input": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "dicom",
                                "parrec"
                            ]
                        }
                    }
                }
            }
        },
        "config": {
            "required": [
                "sort_diffusion_volumes",
                "3Dvol",
                "single_file_mode",
                "merge2d",
                "philips_scaling",
                "anonymize_bids",
                "bids_sidecar",
                "text_notes_private",
                "crop",
                "filename",
                "compress_nifti",
                "decompress_dicoms",
                "convert_only_series",
                "ignore_derived"
            ],
            "type": "object",
            "properties": {
                "sort_diffusion_volumes": {
                    "default": "n",
                    "type": "string",
                    "id": "-d"
                },
                "compress_nifti": {
                    "default": "y",
                    "type": "string",
                    "id": "-z"
                },
                "merge2d": {
                    "default": "n",
                    "type": "string",
                    "id": "-m"
                },
                "philips_scaling": {
                    "default": "y",
                    "type": "string",
                    "id": "-p"
                },
                "anonymize_bids": {
                    "default": "n",
                    "type": "string",
                    "id": "-ba"
                },
                "bids_sidecar": {
                    "default": "n",
                    "type": "string",
                    "id": "-b"
                },
                "3Dvol": {
                    "default": false,
                    "type": "boolean"
                },
                "crop": {
                    "default": "n",
                    "type": "string",
                    "id": "-x"
                },
                "text_notes_private": {
                    "default": "n",
                    "type": "string",
                    "id": "-t"
                },
                "single_file_mode": {
                    "default": "n",
                    "type": "string",
                    "id": "-s"
                },
                "decompress_dicoms": {
                    "default": false,
                    "type": "boolean"
                },
                "convert_only_series": {
                    "default": "'all'",
                    "type": "string",
                    "id": "-n"
                },
                "ignore_derived": {
                    "default": "n",
                    "type": "string",
                    "id": "-i"
                },
                "filename": {
                    "default": "%f",
                    "type": "string",
                    "id": "-f"
                }
            }
        }
    },
    "title": "Invocation manifest for DCM2NIIX: dcm2nii DICOM to NIfTI converter"
}