summaryrefslogtreecommitdiffstats
path: root/test/schemas/negative_test/roles/meta_invalid_role_namespace/meta/main.yml.md
blob: ad7e9d3d73a4654d586ce6b4665110a5313ae216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# ajv errors

```json
[
  {
    "instancePath": "/galaxy_info",
    "keyword": "required",
    "message": "must have required property 'author'",
    "params": {
      "missingProperty": "author"
    },
    "schemaPath": "#/allOf/0/then/required"
  },
  {
    "instancePath": "/galaxy_info",
    "keyword": "if",
    "message": "must match \"then\" schema",
    "params": {
      "failingKeyword": "then"
    },
    "schemaPath": "#/allOf/0/if"
  },
  {
    "instancePath": "/galaxy_info/namespace",
    "keyword": "pattern",
    "message": "must match pattern \"^[a-z][a-z0-9_]+$\"",
    "params": {
      "pattern": "^[a-z][a-z0-9_]+$"
    },
    "schemaPath": "#/properties/namespace/pattern"
  }
]
```

# check-jsonschema

stdout:

```json
{
  "status": "fail",
  "errors": [
    {
      "filename": "negative_test/roles/meta_invalid_role_namespace/meta/main.yml",
      "path": "$.galaxy_info",
      "message": "'author' is a required property",
      "has_sub_errors": false
    },
    {
      "filename": "negative_test/roles/meta_invalid_role_namespace/meta/main.yml",
      "path": "$.galaxy_info.namespace",
      "message": "'foo-bar' does not match '^[a-z][a-z0-9_]+$'",
      "has_sub_errors": false
    }
  ],
  "parse_errors": []
}
```