question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[regression] Devfile schema validation is broken for referenceContent actions

See original GitHub issue

Describe 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 and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl 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:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tsmaedercommented, Jul 25, 2019

@amisevsk Since we enabled “referenceContent” for 7.0, I guess this needs to be fixed for 7.0, as well.

0reactions
amisevskcommented, Jul 25, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found