1
0

schema.json 851 B

1234567891011121314151617181920212223242526272829
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "$id": "https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/schema.json",
  4. "type": "object",
  5. "properties": {
  6. "year": {
  7. "type": "number",
  8. "description": "年份"
  9. },
  10. "papers": {
  11. "type": "array",
  12. "items": { "type": "string" },
  13. "description": "所用国务院文件网址列表"
  14. },
  15. "days": {
  16. "type": "array",
  17. "items": {
  18. "type": "object",
  19. "properties": {
  20. "name": { "type": "string", "description": "节日名称" },
  21. "date": { "type": "string", "description": "ISO 8601 日期" },
  22. "isOffDay": { "type": "boolean", "description": "是否为休息日" }
  23. },
  24. "required": ["name", "date", "isOffDay"]
  25. }
  26. }
  27. },
  28. "required": ["year", "papers", "days"]
  29. }