Debian Codegraph @

src/ansiblelint/schemas/requirements.json

raw
1 {
2 "$defs": {
3 "CollectionModel": {
4 "additionalProperties": false,
5 "properties": {
6 "name": {
7 "title": "Name",
8 "type": "string"
9 },
10 "source": {
11 "title": "Source",
12 "type": "string"
13 },
14 "type": {
15 "enum": ["galaxy", "url", "file", "git", "dir", "subdirs"],
16 "title": "Type",
17 "type": "string"
18 },
19 "version": {
20 "title": "Version",
21 "type": "string"
22 }
23 },
24 "title": "CollectionModel",
25 "type": "object"
26 },
27 "CollectionStringModel": {
28 "title": "CollectionStringModel",
29 "type": "string"
30 },
31 "IncludeModel": {
32 "properties": {
33 "include": {
34 "title": "Include",
35 "type": "string"
36 }
37 },
38 "required": ["include"],
39 "title": "IncludeModel",
40 "type": "object"
41 },
42 "RequirementsV2Model": {
43 "additionalProperties": false,
44 "anyOf": [
45 {
46 "required": ["collections"]
47 },
48 {
49 "required": ["roles"]
50 }
51 ],
52 "properties": {
53 "collections": {
54 "items": {
55 "anyOf": [
56 {
57 "$ref": "#/$defs/CollectionModel"
58 },
59 {
60 "$ref": "#/$defs/CollectionStringModel"
61 }
62 ]
63 },
64 "title": "Collections",
65 "type": "array"
66 },
67 "roles": {
68 "items": {
69 "$ref": "#/$defs/RoleModel"
70 },
71 "title": "Roles",
72 "type": "array"
73 }
74 },
75 "title": "Requirements v2",
76 "type": "object"
77 },
78 "RoleModel": {
79 "additionalProperties": false,
80 "properties": {
81 "name": {
82 "title": "Name",
83 "type": "string"
84 },
85 "scm": {
86 "anyOf": [
87 {
88 "enum": ["git"],
89 "type": "string"
90 },
91 {
92 "enum": ["hg"],
93 "type": "string"
94 }
95 ],
96 "default": "git",
97 "title": "Scm"
98 },
99 "src": {
100 "title": "Src",
101 "type": "string"
102 },
103 "version": {
104 "default": "master",
105 "title": "Version",
106 "type": "string"
107 }
108 },
109 "title": "Role",
110 "type": "object"
111 }
112 },
113 "$id": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/requirements.json",
114 "$schema": "http://json-schema.org/draft-07/schema",
115 "anyOf": [
116 {
117 "items": {
118 "anyOf": [
119 {
120 "$ref": "#/$defs/RoleModel"
121 },
122 {
123 "$ref": "#/$defs/IncludeModel"
124 }
125 ]
126 },
127 "type": "array"
128 },
129 {
130 "$ref": "#/$defs/RequirementsV2Model"
131 }
132 ],
133 "description": "https://docs.ansible.com/projects/ansible/latest/galaxy/user_guide.html#installing-roles-and-collections-from-the-same-requirements-yml-file",
134 "examples": ["requirements.yml"],
135 "title": "Ansible Requirements Schema"
136 }