Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema.json is not valid #1471

Closed
ZCube opened this issue Jan 13, 2024 · 1 comment
Closed

schema.json is not valid #1471

ZCube opened this issue Jan 13, 2024 · 1 comment
Labels
state: duplicate Duplicates another issue.

Comments

@ZCube
Copy link

ZCube commented Jan 13, 2024

  • Task version: 3.33.0
  • Operating system: linux
  • Experiments enabled:

Example 'Taskfile.yaml' with vscode ( extension : redhat.vscode-yaml )

# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"

Message:

[{
	"resource": "####/Taskfile.yaml",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": "768",
	"severity": 8,
	"message": "Schema 'Taskfile config - Taskfile files (schema.json)' is not valid:\n/allOf/0/properties/tasks/patternProperties/^.*$/anyOf/2/properties/cmds/items/anyOf/3/properties/defer/anyOf/0 : must be object,boolean\n/allOf/0/properties/tasks/patternProperties/^.*$/anyOf/2/properties/cmds/items : must be array\n/allOf/0/properties/tasks/patternProperties/^.*$/anyOf/2/properties/cmds/items : must match a schema in anyOf",
	"source": "YAML",
	"startLineNumber": 2,
	"startColumn": 1,
	"endLineNumber": 2,
	"endColumn": 2
}]
Schema 'Taskfile config - Taskfile files (schema.json)' is not valid:
/allOf/0/properties/tasks/patternProperties/^.*$/anyOf/2/properties/cmds/items/anyOf/3/properties/defer/anyOf/0 : must be object,boolean
/allOf/0/properties/tasks/patternProperties/^.*$/anyOf/2/properties/cmds/items : must be array
/allOf/0/properties/tasks/patternProperties/^.*$/anyOf/2/properties/cmds/items : must match a schema in anyOfYAML(768)
@pd93
Copy link
Member

pd93 commented Jan 17, 2024

Thanks for the report @ZCube. I'm going to close this in favour of #1474 since there's a bit more info there.

@pd93 pd93 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2024
@pd93 pd93 added state: duplicate Duplicates another issue. and removed state: needs triage Waiting to be triaged by a maintainer. labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: duplicate Duplicates another issue.
Projects
None yet
Development

No branches or pull requests

3 participants