Versions

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

KeyTypeRequiredDescription
schemaVersionstringyesThe version of the devfile schema that the devfile uses.

Procedure

  • Define the schemaVersion attribute in the devfile:

Adding schema version to a devfile

devfile.yaml
schemaVersion: 2.2.2
metadata:
  name: devfile-sample
  version: 2.1.0

Additional resources