Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

meta: allow empty files #247

Merged
merged 1 commit into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 35 additions & 28 deletions f/ansible-meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,40 @@
{
"$id": "https://raw.githubusercontent.com/ansible/schemas/main/f/ansible-meta.json",
"$schema": "http://json-schema.org/draft-07/schema",
"additionalProperties": false,
"anyOf": [
{
"type": "null"
},
{
"additionalProperties": false,
"properties": {
"allow_duplicates": {
"title": "Allow Duplicates",
"type": "boolean"
},
"collections": {
"items": {
"markdownDescription": "See [Using collections in roles](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#using-collections-in-roles) and [collection naming conventions](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_in_groups.html#naming-conventions)",
"pattern": "^[a-z_]+\\.[a-z_]+$",
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"$ref": "#/definitions/DependencyModel"
},
"title": "Dependencies",
"type": "array"
},
"galaxy_info": {
"$ref": "#/definitions/GalaxyInfoModel"
}
},
"required": ["galaxy_info"],
"type": "object"
}
],
"definitions": {
"AIXPlatformModel": {
"properties": {
Expand Down Expand Up @@ -1183,31 +1216,5 @@
}
},
"examples": ["meta/main.yml"],
"properties": {
"allow_duplicates": {
"title": "Allow Duplicates",
"type": "boolean"
},
"collections": {
"items": {
"markdownDescription": "See [Using collections in roles](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#using-collections-in-roles) and [collection naming conventions](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_in_groups.html#naming-conventions)",
"pattern": "^[a-z_]+\\.[a-z_]+$",
"type": "string"
},
"type": "array"
},
"dependencies": {
"items": {
"$ref": "#/definitions/DependencyModel"
},
"title": "Dependencies",
"type": "array"
},
"galaxy_info": {
"$ref": "#/definitions/GalaxyInfoModel"
}
},
"required": ["galaxy_info"],
"title": "Ansible Meta Schema",
"type": "object"
"title": "Ansible Meta Schema"
}
1 change: 1 addition & 0 deletions test/roles/empty-meta/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# this should be considered valid