NamespaceMetadata

NamespaceMetadata

네임스페이스의 메타데이터를 담는 스키마예요. 데이터셋 목록, 확장 퍼블리셔 여부, 추가 리포지토리, 퍼블리셔 프로그램 타입 등을 포함해요.

출처: 문서

본문

네임스페이스의 메타데이터를 담는 스키마예요. 데이터셋 목록, 확장 퍼블리셔 여부, 추가 리포지토리, 퍼블리셔 프로그램 타입 등을 포함해요.

실제 JSON 스키마는 다음과 같아요.

{
  "examples": [
    {
      "datasets": [
        {
          "name": "pulls",
          "timespans": [
            "months",
            "weeks"
          ],
          "views": [
            "raw",
            "summary",
            "repo-summary",
            "namespace-summary",
            "geo-repo-summary"
          ]
        }
      ],
      "extensionPublisher": false,
      "extraRepos": null,
      "namespace": "org1",
      "publisherType": "DVP"
    },
    {
      "datasets": [
        {
          "name": "pulls",
          "timespans": [
            "months",
            "weeks"
          ],
          "views": [
            "repo-summary",
            "namespace-summary"
          ]
        },
        {
          "name": "extensions",
          "timespans": [
            "months",
            "weeks"
          ],
          "views": [
            "ext-summary"
          ]
        }
      ],
      "extensionPublisher": true,
      "extraRepos": null,
      "namespace": "org4",
      "publisherType": "DVP"
    }
  ],
  "properties": {
    "datasets": {
      "items": {
        "$ref": "#/components/schemas/DatasetModel"
      },
      "type": "array"
    },
    "extensionPublisher": {
      "description": "Whether the namespace is an extension publisher.",
      "type": "boolean"
    },
    "extraRepos": {
      "description": "Additional repositories associated with the namespace. Null when none are configured.",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "namespace": {
      "type": "string"
    },
    "publisherType": {
      "description": "Publisher program associated with the namespace.",
      "type": "string"
    }
  },
  "type": "object"
}

더 알아보기