Closed kounoike closed 9 years ago
http://spacetelescope.github.io/understanding-json-schema/reference/index.html こういうのをがりがりと書いて、config.jsonが間違ってないかチェックできると良いかな。
https://github.com/epoberezkin/ajv こういうのでチェックできてエラーメッセージも出るみたいだ。 でも、キーのtypoとかには対応していないのかな、どうだろう。
Ajvがいい感じ。「余計なフィールドがあるよん」とか教えてくれるみたいだ。 JSONのシンタックスレベルの問題には、json-parse-helpfulerrorが良さそう。
作ってPR出した。
http://spacetelescope.github.io/understanding-json-schema/reference/index.html こういうのをがりがりと書いて、config.jsonが間違ってないかチェックできると良いかな。