ajv-validator / ajv-validator/ajv-cli
Passing a JSON Pointer with a schema
未關閉
feature
- 主要語言
- TypeScript
- 星號
- 316
- 分支
- 77
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I'm looking at using ajv-cli to help test Hyper-Schema requests and responses. This means that the schema I want to validate against is not always the entire schema file.
What would you think of allowing something like:
ajv validate -s "foo.json#/links/0/targetSchema" -d "data.json"
or with .json omitted:
ajv validate -s "foo#/links/0/targetSchema" -d "data"
It would, of course, not be too hard to write some other script to pull out the appropriate schema, and that might be better given that selecting a link by numeric index is pretty fragile. So I'm not sure this is the best solution but thought I'd float it .
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。