Skip to content

Commit

Permalink
Include documentation url inside JSON Schema (#574)
Browse files Browse the repository at this point in the history
Adding a link to official documentation inside JSON Schema, so its
users, such ansible-lint can recommend it when validation fails.

Needed-By: ansible/ansible-lint#3684

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ssbarnea and pre-commit-ci[bot] authored Aug 28, 2023
1 parent 1d2de8d commit 98345aa
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 16 deletions.
2 changes: 2 additions & 0 deletions ansible_rulebook/schema/ruleset_schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/ansible/ansible-rulebook/main/ansible_rulebook/schema/ruleset_schema.json",
"title": "Ansible Rulebook",
"description": "See https://ansible.readthedocs.io/projects/rulebook/en/stable/rulebooks.html",
"type": "array",
"items": {
"$ref": "#/$defs/ruleset"
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/01.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 1
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/02.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 2
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/03.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 3
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/04.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 4
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/05.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 5
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/06.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 6
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/07.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 7
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/08.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 8
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/23_nested_data/09.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"i": 9
}
}
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/24_max_attributes/00.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,4 @@
"attr_97": 97,
"attr_98": 98,
"attr_99": 99
}
}
2 changes: 1 addition & 1 deletion tests/examples/replays/25_max_attributes_nested/00.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@
}
}
}
}
}
4 changes: 3 additions & 1 deletion tests/sources/replays/01.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"i": 0}
{
"i": 0
}
4 changes: 3 additions & 1 deletion tests/sources/replays/02.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"i": 1}
{
"i": 1
}
4 changes: 3 additions & 1 deletion tests/sources/replays/03.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"i": 2}
{
"i": 2
}
4 changes: 3 additions & 1 deletion tests/sources/replays/04.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"i": 3}
{
"i": 3
}
4 changes: 3 additions & 1 deletion tests/sources/replays/05.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{"i": 4}
{
"i": 4
}

0 comments on commit 98345aa

Please sign in to comment.