Adding schema version to a devfile

The schemaVersion attribute is mandatory in a devfile.

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