-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
0d0892e
commit 1a5558e
Showing
4 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,97 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"description": "Antsibull Changelog Schema", | ||
"title": "Antsibull Changelog Schema", | ||
"type": "object", | ||
"$defs": { | ||
"release": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"changes": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"bugfixes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "array" | ||
}, | ||
"deprecated_features": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "array" | ||
}, | ||
"minor_changes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "array" | ||
}, | ||
"release_summary": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"codename": { | ||
"type": "string" | ||
}, | ||
"modules": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"description": { | ||
"markdownDescription": "Value of `short_description from plugin `DOCUMENTATION`.", | ||
"title": "Description", | ||
"type": "string", | ||
"markdownDescription": "Value of `short_description from plugin `DOCUMENTATION`." | ||
"type": "string" | ||
}, | ||
"name": { | ||
"title": "Short module name", | ||
"type": "string", | ||
"markdownDescription": " It must not be the FQCN, but the name inside the collection.", | ||
"pattern": "[a-zA-Z0-9_]+" | ||
"pattern": "[a-zA-Z0-9_]+", | ||
"title": "Short module name", | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"markdownDescription": "Must be `null` for plugin and objects. For modules it must be either empty string. The namespace is used to group new modules by their namespace inside the collection.", | ||
"title": "Namespace", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"markdownDescription": "Must be `null` for plugin and objects. For modules it must be either empty string. The namespace is used to group new modules by their namespace inside the collection." | ||
"type": ["string", "null"] | ||
} | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"release_date": { | ||
"title": "Date of the release.", | ||
"type": "string", | ||
"format": "data", | ||
"markdownDescription": "Use ISO-8601 date format, like 2020-12-31" | ||
"markdownDescription": "Use ISO-8601 date format, like 2020-12-31", | ||
"title": "Date of the release.", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"semver": { | ||
"pattern": "\\d+.\\d+.\\d+.*", | ||
"title": "Version string following SemVer specification.", | ||
"type": "string", | ||
"pattern": "\\d+.\\d+.\\d+.*" | ||
"type": "string" | ||
} | ||
}, | ||
"$id": "https://raw.githubusercontent.com/ansible-lint/main/src/ansiblelint/schemas/changelog.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"additionalProperties": false, | ||
"examples": [ | ||
"changelog.yml" | ||
], | ||
"description": "Antsibull Changelog Schema", | ||
"examples": ["changelog.yml"], | ||
"markdownDescription": "See [Changelog YAML Format](https://github.com/ansible-community/antsibull-changelog/blob/main/docs/changelog.yaml-format.md)", | ||
"properties": { | ||
"ancestor": { | ||
"$ref": "#/$defs/semver" | ||
}, | ||
"releases": { | ||
"type": "object", | ||
"patternProperties": { | ||
"\\d+.\\d+.\\d+.*": { | ||
"type": "object", | ||
"$ref": "#/$defs/release" | ||
"$ref": "#/$defs/release", | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
"title": "Antsibull Changelog Schema", | ||
"type": "object" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
releases: foo # <-- not a semver | ||
|
||
|
||
|
||
releases: foo # <-- not a semver |
2 changes: 1 addition & 1 deletion
2
test/schemas/negative_test/changelogs/unknown-keys/changelog.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
release: {} # <- unknown key, correct would be releases | ||
release: {} # <- unknown key, correct would be releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters