Skip to content

Commit

Permalink
Add support for 2.3.0 schema version (#219)
Browse files Browse the repository at this point in the history
* updateApi.sh script includes newer schema versions

Signed-off-by: Michael Valdron <mvaldron@redhat.com>

* devfile 2.3.0 support

Signed-off-by: Michael Valdron <mvaldron@redhat.com>

* revert schema versions for testing older features

Signed-off-by: Michael Valdron <mvaldron@redhat.com>

---------

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
  • Loading branch information
michael-valdron authored Jun 18, 2024
1 parent 6a00bfa commit 69a656f
Show file tree
Hide file tree
Showing 4 changed files with 2,275 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/devfile/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ parent:
id: devfile1
registryUrl: http://127.0.0.1:8080/registry
`
devfileContentWithUnsupportedSchema := `schemaVersion: 2.2.5
devfileContentWithUnsupportedSchema := `schemaVersion: 2.3.5
parent:
id: devfile1
registryUrl: http://127.0.0.1:8080/registry
Expand Down Expand Up @@ -267,7 +267,7 @@ spec:
testServer.Start()
defer testServer.Close()

unsupportedSchemaError := `error parsing devfile because of non-compliant data due to unable to find schema for version "2.2.5". The parser supports devfile schema for version 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, v1alpha2`
unsupportedSchemaError := `error parsing devfile because of non-compliant data due to unable to find schema for version "2.3.5". The parser supports devfile schema for version 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.3.0, v1alpha2`

type args struct {
args parser.ParserArgs
Expand Down
Loading

0 comments on commit 69a656f

Please sign in to comment.