Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 13, 2022
1 parent 0d0892e commit 1a5558e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 47 deletions.
77 changes: 36 additions & 41 deletions src/ansiblelint/schemas/changelog.json
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"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
releases: foo # <-- not a semver



releases: foo # <-- not a semver
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
2 changes: 1 addition & 1 deletion test/schemas/test/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ancestor: 0.5.4
releases:
1.0.0-alpha:
release_date: '2020-01-01'
release_date: "2020-01-01"
codename: "The first public one"
changes:
release_summary: A bit o markdown text
Expand Down

0 comments on commit 1a5558e

Please sign in to comment.