Ajv
Ajv.jsというのを知ったので調べた Ajv.jsはjsonバリデータ ajv.js.org 以下のように宣言型スキーマを介してバリデーションを行う const Ajv = require("ajv") const ajv = new Ajv() const schema = { type: "object", properties: { foo: {type: "integer"…
Ajv.jsというのを知ったので調べた Ajv.jsはjsonバリデータ ajv.js.org 以下のように宣言型スキーマを介してバリデーションを行う const Ajv = require("ajv") const ajv = new Ajv() const schema = { type: "object", properties: { foo: {type: "integer"…