{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://www.w3id.org/biocompute/1.3.0/schemas/extension_domain/scm_extension.json",
    "type": "object",
    "required": [
        "scm_repository",
        "scm_type",
        "scm_commit",
        "scm_path"
    ],
    "properties": {
        "scm_repository": {
            "type": "string",
            "examples": [
                "https://github.com/example/repo1"
            ],
            "format": "uri"
        },
        "scm_type": {
            "type": "string",
            "enum": [
                "git",
                "svn",
                "hg",
                "other"
            ]
        },
        "scm_commit": {
            "type": "string",
            "examples": [
                "c9ffea0b60fa3bcf8e138af7c99ca141a6b8fb21"
            ]
        },
        "scm_path": {
            "type": "string",
            "examples": [
                "workflow/hive-viral-mutation-detection.cwl"
            ],
            "format": "string"
        },
        "scm_preview": {
            "type": "string",
            "examples": [
                "https://github.com/example/repo1/blob/c9ffea0b60fa3bcf8e138af7c99ca141a6b8fb21/workflow/hive-viral-mutation-detection.cwl"
            ],
            "format": "uri"
        }
    }
}
