[regression] Devfile schema validation is broken for referenceContent actions
See original GitHub issueDescribe the bug
When try to execute factory from python-django https://github.com/eclipse/che-devfile-registry/blob/master/devfiles/python-django/devfile.yaml the following validation error appears:
Devfile schema validation failed.
Error: Exactly one of the following sets of problems must be resolved.:
[(/commands/4/actions/0):The object must have a property whose name is "component".(/commands/4/actions/0):The object must have a property whose name is "command".
At least one of the following sets of problems must be resolved.:
[(/commands/4/actions/0):The object must have a property whose name is "reference".(/commands/4/actions/0):The object must have a property whose name is "referenceContent".]]
Che version
- latest
- [ x] nightly
- other: please specify
Steps to reproduce
Execute the factory with given devfile: http://<che-host>/f?url=https://raw.githubusercontent.com/eclipse/che-devfile-registry/master/devfiles/python-django/devfile.yaml
Expected behavior
Workspace should be created
Runtime
- kubernetes (include output of
kubectl version
) - Openshift (include output of
oc version
) - minikube (include output of
minikube version
andkubectl version
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Screenshots
Installation method
- chectl
- che-operator
- minishift-addon
- I don’t know
Environment
- [ x] my computer
- Windows
- [ x] Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: please specify
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
devfile: for a command, allow multiple actions #17162 - GitHub
Cause: Devfile schema validation failed. Error: (/commands/0/actions):The array must have at most 1 element(s), but actual number is 2.
Read more >Devfile object Schema | Introduction to Devfile - GitHub Pages
This schema describes the structure of the devfile object ... actions. The Command Actions List. List of the actions of given command.
Read more >Schema validation failure in Action Configuration
I'm looking to add a custom Action to our Salesforce integration, and I'm running into the following error in the configuration tab: JSON...
Read more >Chapter 4. Authoring devfiles - Red Hat Customer Portal
A devfile allows to specify commands to be available for execution in a workspace. Every command can contain a subset of actions, which...
Read more >Understanding JSON Schema
JSON Schema is a powerful tool for validating the structure of JSON data. However, learning to use it by reading its.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@amisevsk Since we enabled “referenceContent” for 7.0, I guess this needs to be fixed for 7.0, as well.
Looking again, this appears to be out-of-date che-server images; PR https://github.com/eclipse/che/pull/13957 enabled referenceContent recently. Without this PR, issue https://github.com/eclipse/che/issues/13925 precents starting the python-django workspace.
Closing as fixed in nightly / duplicate of https://github.com/eclipse/che/issues/13925