Adding schema version to a devfile

The schemaVersion attribute is mandatory in a devfile. See the following table for schemaVersion properties in a devfile:

Key Type Required Description

schemaVersion

string

yes

The version of the devfile schema that the devfile uses.

Procedure
  • Define the schemaVersion attribute in the devfile:

Example 1. Adding schema version to a devfile
v2.1
---
schemaVersion: 2.1.0
metadata:
  name: devfile-sample
  version: 2.1.0
Additional resources