Skip to content

Commit

Permalink
Ignore unknown sections under changes key on changelogs
Browse files Browse the repository at this point in the history
Fixes: #3261
  • Loading branch information
ssbarnea committed Apr 11, 2023
1 parent 5036881 commit ffe0d6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ansiblelint/schemas/__store__.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json"
},
"meta": {
"etag": "9b1f825eff8182e6128a105ddb4003b90cf3ae6ea275f439a73d1e84046d854d",
"etag": "f7bf684445ab4b7fffe05a4bfb56ecb22421fff04910b236f1961db3ad817999",
"url": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/meta.json"
},
"meta-runtime": {
Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/schemas/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"additionalProperties": false,
"properties": {
"changes": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"breaking_changes": {
"items": {
Expand Down
2 changes: 2 additions & 0 deletions test/schemas/test/changelogs/maximal/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ releases:
- something that is not included in release notes
known_issues:
- som other
xxx:
- we should ignore unknown keys because user can define custom section in changelogs/config.yaml file
modules:
- name: head
description: Make a HEAD request
Expand Down

0 comments on commit ffe0d6f

Please sign in to comment.