ajv-validator / ajv-validator/ajv-cli

I need help with a 2020-12 schema. Perhaps I need unevaluated items or unevaluated properties?

未關閉
#253 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
316
分支
77
PR 合併指標
30 天內沒有已合併 PR

描述

I'm stupid. I need some finishing touches on aschema. I would like to run in strict mode, but I have these two issues related to prefixItems. I don't know how to write JavaScript to do this, even though I can validate against my own schema, and I can compile a schema (it gives these errors too).
I just can't validate/fix my own schema (attached) without a better message.

[geoSystem.json](https://github.com/user-attachments/files/25425224/geoSystem.json)

```
$ ajv --spec=draft2020 compile -s schemas/geoSystem.json
strict mode: "prefixItems" is 1-tuple, but minItems or maxItems/items are not specified or different at path "#"
strict mode: "prefixItems" is 2-tuple, but minItems or maxItems/items are not specified or different at path "#"
schema schemas/geoSystem.json is valid
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。