{
    "$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": [
                "lossless_scaling",
                "single_file_mode",
                "merge2d",
                "philips_scaling",
                "anonymize_bids",
                "bids_sidecar",
                "text_notes_private",
                "crop",
                "filename",
                "compress_nifti",
                "convert_only_series",
                "decompress_dicoms",
                "vol3D",
                "ignore_errors",
                "ignore_derived",
                "coil_combine"
            ],
            "type": "object",
            "properties": {
                "lossless_scaling": {
                    "default": "n",
                    "type": "string",
                    "id": "-l"
                },
                "ignore_errors": {
                    "default": false,
                    "type": "boolean"
                },
                "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"
                },
                "text_notes_private": {
                    "default": "n",
                    "type": "string",
                    "id": "-t"
                },
                "crop": {
                    "default": "n",
                    "type": "string",
                    "id": "-x"
                },
                "filename": {
                    "default": "%f",
                    "type": "string",
                    "id": "-f"
                },
                "single_file_mode": {
                    "default": "n",
                    "type": "string",
                    "id": "-s"
                },
                "decompress_dicoms": {
                    "default": false,
                    "type": "boolean"
                },
                "convert_only_series": {
                    "default": "all",
                    "type": "string",
                    "id": "-n"
                },
                "vol3D": {
                    "default": false,
                    "type": "boolean"
                },
                "ignore_derived": {
                    "default": "n",
                    "type": "string",
                    "id": "-i"
                },
                "coil_combine": {
                    "default": false,
                    "type": "boolean"
                }
            }
        }
    },
    "title": "Invocation manifest for DCM2NIIX: dcm2nii DICOM to NIfTI converter"
}