summaryrefslogtreecommitdiffstats
path: root/test/schemas/negative_test/.ansible-lint.md
blob: f1f230887e1d60b05c8e67c1da28f758c036d8b2 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# ajv errors

```json
[
  {
    "instancePath": "/rules",
    "keyword": "enum",
    "message": "must be equal to one of the allowed values",
    "params": {
      "allowedValues": [
        "command-instead-of-module",
        "command-instead-of-shell",
        "deprecated-bare-vars",
        "deprecated-local-action",
        "deprecated-module",
        "empty-string-compare",
        "fqcn",
        "fqcn[action-core]",
        "fqcn[action]",
        "fqcn[canonical]",
        "fqcn[keyword]",
        "galaxy",
        "galaxy[no-changelog]",
        "galaxy[no-runtime]",
        "galaxy[tags]",
        "galaxy[version-incorrect]",
        "galaxy[version-missing]",
        "ignore-errors",
        "inline-env-var",
        "internal-error",
        "jinja",
        "jinja[invalid]",
        "jinja[spacing]",
        "key-order",
        "latest",
        "literal-compare",
        "load-failure",
        "load-failure[not-found]",
        "loop-var-prefix",
        "loop-var-prefix[missing]",
        "loop-var-prefix[wrong]",
        "meta-incorrect",
        "meta-no-tags",
        "meta-runtime",
        "meta-video-links",
        "name",
        "name[casing]",
        "name[play]",
        "name[prefix]",
        "name[template]",
        "no-changed-when",
        "no-handler",
        "no-jinja-when",
        "no-log-password",
        "no-prompting",
        "no-relative-paths",
        "no-same-owner",
        "no-tabs",
        "only-builtins",
        "package-latest",
        "parser-error",
        "partial-become",
        "playbook-extension",
        "risky-file-permissions",
        "risky-octal",
        "risky-shell-pipe",
        "role-name",
        "run-once",
        "run-once[play]",
        "run-once[task]",
        "sanity",
        "sanity[bad-ignore]",
        "sanity[cannot-ignore]",
        "schema",
        "syntax-check",
        "var-naming",
        "yaml"
      ]
    },
    "propertyName": "Wrong_Rule_name",
    "schemaPath": "#/properties/rules/propertyNames/oneOf/0/enum"
  },
  {
    "instancePath": "/rules",
    "keyword": "pattern",
    "message": "must match pattern \"^[a-z0-9-\\[\\]]+$\"",
    "params": {
      "pattern": "^[a-z0-9-\\[\\]]+$"
    },
    "propertyName": "Wrong_Rule_name",
    "schemaPath": "#/properties/rules/propertyNames/oneOf/1/pattern"
  },
  {
    "instancePath": "/rules",
    "keyword": "oneOf",
    "message": "must match exactly one schema in oneOf",
    "params": {
      "passingSchemas": null
    },
    "propertyName": "Wrong_Rule_name",
    "schemaPath": "#/properties/rules/propertyNames/oneOf"
  },
  {
    "instancePath": "/rules",
    "keyword": "propertyNames",
    "message": "property name must be valid",
    "params": {
      "propertyName": "Wrong_Rule_name"
    },
    "schemaPath": "#/properties/rules/propertyNames"
  },
  {
    "instancePath": "/rules/Wrong_Rule_name",
    "keyword": "type",
    "message": "must be object",
    "params": {
      "type": "object"
    },
    "schemaPath": "#/$defs/rule/type"
  }
]
```

# check-jsonschema

stdout:

```json
{
  "status": "fail",
  "errors": [],
  "parse_errors": [
    {
      "filename": "negative_test/.ansible-lint",
      "message": "Failed to parse negative_test/.ansible-lint"
    }
  ]
}
```