Versions
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
schemaVersionattribute in the devfile:
Adding schema version to a devfile
devfile.yaml
schemaVersion: 2.3.0
metadata:
name: devfile-sample
version: 2.1.0