{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-describe-code-repository-output-schema.json",
  "title": "DescribeCodeRepositoryOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-code-repository-api-openapi.yml#/components/schemas/DescribeCodeRepositoryOutput",
  "type": "object",
  "properties": {
    "CodeRepositoryName": {
      "type": "string",
      "description": "The name of the Git repository."
    },
    "CodeRepositoryArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Git repository."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the repository was created."
    },
    "LastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time that the repository was last changed."
    },
    "GitConfig": {
      "$ref": "#/$defs/GitConfig"
    }
  },
  "required": [
    "CodeRepositoryName",
    "CodeRepositoryArn",
    "CreationTime",
    "LastModifiedTime"
  ],
  "$defs": {
    "GitConfig": {
      "type": "object",
      "properties": {
        "RepositoryUrl": {
          "type": "string",
          "description": "The URL where the Git repository is located."
        },
        "Branch": {
          "type": "string",
          "description": "The default branch for the Git repository."
        },
        "SecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format: {\"username\": UserName, \"password\": Password}"
        }
      },
      "required": [
        "RepositoryUrl"
      ]
    }
  }
}