{
  "id": "iso_week",
  "kind": "datatype",
  "status": "draft",
  "name": "ISO 8601 year and week",
  "doc": "A calendar week written as an ISO 8601 week date without the day, the week-numbering year, the letter W and a two-digit week from 01 to 53, in extended (2021-W05) or basic (2021W05) form. ISO weeks start on Monday, and week 01 is the week with the first Thursday of the year, so the week-numbering year can differ from the calendar year near 1 January. The regexp does not check that week 53 exists in the given year.",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^\\d{4}-?W(?:0[1-9]|[1-4]\\d|5[0-3])$",
  "examples": [
    {
      "value": "2021-W05",
      "description": "extended format",
      "valid": true
    },
    {
      "value": "2021W05",
      "description": "basic format",
      "valid": true
    },
    {
      "value": "2020-W53",
      "description": "2020 has 53 ISO weeks",
      "valid": true
    },
    {
      "value": "2021-W54",
      "description": "week out of range",
      "valid": false
    },
    {
      "value": "2021-5",
      "description": "no W designator",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_week_date"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Q2110154"
    }
  ],
  "translations": {
    "ru": {
      "name": "Неделя по ISO 8601"
    },
    "fr": {
      "name": "Semaine ISO 8601"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/iso_week.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/iso_week.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/iso_week.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/iso_week",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/iso_week.json"
  }
}