feat: add json schema

resolve #23
This commit is contained in:
NateScarlet
2019-09-11 22:42:42 +08:00
parent 82dd7eed85
commit eefff066fa
17 changed files with 73 additions and 8 deletions

View File

@@ -9,9 +9,10 @@
- [x] 数据变化时时自动发布新版本 ( `Watch` - `Release only` 以获取邮件提醒! )
- [x] [发布页面]提供 JSON 打包下载
数据格式:
[JSON Schema](./schema.json)
```TypeScript
interface Holidays {
/** 完整年份, 整数。*/
@@ -31,9 +32,9 @@ interface Holidays {
## 通过互联网使用
数据地址格式:
https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/{年份}.json
数据地址格式:
https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/{年份}.json
## 作为 git 子模块使用