Skip to content

Commit 5da3146

Browse files
committed
A few tweaks to the JSON schema
1 parent 4f2194b commit 5da3146

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

agentuity.schema.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"development": {
3535
"type": "object",
36-
"required": ["port", "watch", "command", "args"],
36+
"required": ["port", "watch", "command"],
3737
"properties": {
3838
"port": {
3939
"type": "integer",
@@ -71,53 +71,53 @@
7171
},
7272
"deployment": {
7373
"type": "object",
74-
"required": ["command", "args", "resources"],
74+
"required": ["command", "resources"],
7575
"properties": {
7676
"command": {
7777
"type": "string",
78-
"description": "The command to run in deployment"
78+
"description": "The command to run in the cloud deployment"
7979
},
8080
"args": {
8181
"type": "array",
8282
"items": {
8383
"type": "string"
8484
},
85-
"description": "The arguments to pass in deployment"
85+
"description": "The arguments to pass to the command when running in the cloud deployment"
8686
},
8787
"resources": {
8888
"type": "object",
8989
"required": ["memory", "cpu", "disk"],
9090
"properties": {
9191
"memory": {
9292
"type": "string",
93-
"pattern": "^\\d+Mi$",
94-
"description": "The memory requirements"
93+
"pattern": "^\\d+([KGMT]i)?$",
94+
"description": "The memory requirements expressed in bytes. 1GB is is represented as 1Gi"
9595
},
9696
"cpu": {
9797
"type": "string",
98-
"pattern": "^\\d+M$",
99-
"description": "The CPU requirements"
98+
"pattern": "^\\d+([mM])$",
99+
"description": "The CPU requirements expressed in millicores. 1 CPU unit is 1000 millicores or 1000m"
100100
},
101101
"disk": {
102102
"type": "string",
103-
"pattern": "^\\d+Mi$",
104-
"description": "The disk size requirements"
103+
"pattern": "^\\d+([KGMT]i)?$",
104+
"description": "The disk size requirements expressed in bytes. 1GB is is represented as 1Gi"
105105
}
106106
}
107107
}
108108
}
109109
},
110110
"bundler": {
111111
"type": "object",
112-
"required": ["enabled", "identifier", "language", "runtime", "agents"],
112+
"required": ["enabled", "identifier", "language", "agents"],
113113
"properties": {
114114
"enabled": {
115115
"type": "boolean",
116-
"description": "Whether bundling is enabled"
116+
"description": "Whether bundling is enabled for this provider"
117117
},
118118
"identifier": {
119119
"type": "string",
120-
"description": "The bundler identifier"
120+
"description": "The provider identifier"
121121
},
122122
"language": {
123123
"type": "string",
@@ -133,7 +133,7 @@
133133
"properties": {
134134
"dir": {
135135
"type": "string",
136-
"description": "The directory containing agents"
136+
"description": "The directory location where the agents are located"
137137
}
138138
}
139139
},
@@ -160,6 +160,10 @@
160160
"name": {
161161
"type": "string",
162162
"description": "The name of the Agent which is editable"
163+
},
164+
"description": {
165+
"type": "string",
166+
"description": "The description of the Agent which is editable"
163167
}
164168
}
165169
},

0 commit comments

Comments
 (0)