File: test_unmatched_enum

package info (click to toggle)
rust-does-it-json 0.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 148 kB
  • sloc: makefile: 2
file content (22 lines) | stat: -rw-r--r-- 469 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: "Value" did not conform to the schema at $.oneOf: value validated against 0 of 1 `oneOf` schemas (rather than 1)
schema: {
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "UnmatchedEnum",
  "oneOf": [
    {
      "type": "object",
      "required": [
        "broken"
      ],
      "properties": {
        "broken": {
          "type": "string",
          "enum": [
            "Value"
          ]
        }
      }
    }
  ]
}
value: "Value"