奇数的 JSON 架构

Hen*_*dan 4 json jsonschema

如何使用 JSON 模式来验证奇数正整数?乍一看似乎不可能,但也许有什么窍门?

小智 6

这个模式应该可以工作

type: integer
not:
  multipleOf: 2
minimum: 0
Run Code Online (Sandbox Code Playgroud)