Skip to content

Consider the required attribute in the Compose schema when providing code completion #155

@rcjsuen

Description

@rcjsuen
services:
  test:
    develop:
      

Given this file, when using code completion we get watch as an array. Since "required": ["path", "action"] is set for the array's items we should ideally also automatically provide path and action when using the completion item for watch.

"development": {
"type": ["object", "null"],
"properties": {
"watch": {
"type": "array",
"items": {
"type": "object",
"required": ["path", "action"],
"properties": {
"ignore": {"$ref": "#/definitions/string_or_list"},
"include": {"$ref": "#/definitions/string_or_list"},
"path": {"type": "string"},
"action": {"type": "string", "enum": ["rebuild", "sync", "restart", "sync+restart", "sync+exec"]},
"target": {"type": "string"},
"exec": {"$ref": "#/definitions/service_hook"}
},
"additionalProperties": false,
"patternProperties": {"^x-": {}}
}
}
},

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions