저장소 카테고리

저장소 카테고리 (category)

Docker Hub 저장소를 분류하고 검색하기 위한 카테고리 스키마예요. 사람이 읽을 수 있는 이름(name)과 URL 친화적 식별자(slug)를 함께 담아요.

출처: 문서

본문

이 스키마는 nameslug 두 필드를 가진 객체예요. 둘 다 필수이고 최소 1자 이상이어야 해요.

  • name: 카테고리의 사람이 읽을 수 있는 이름 (예: Databases)
  • slug: 카테고리의 URL 친화적 식별자 (예: databases). 소문자와 하이픈 패턴(^[a-z0-9]+(?:-[a-z0-9]+)*$)을 따라요.
{
  "description": "Repository category for classification and discovery",
  "properties": {
    "name": {
      "description": "Human-readable name of the category",
      "example": "Databases",
      "minLength": 1,
      "type": "string"
    },
    "slug": {
      "description": "URL-friendly identifier for the category",
      "example": "databases",
      "minLength": 1,
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      "type": "string"
    }
  },
  "required": [
    "name",
    "slug"
  ],
  "type": "object"
}

더 알아보기