1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/resources/schemas
Christopher Fenner 68ef5393c7
chore(go): add schema for go metadata files (#1052)
* chore(go): add schema for go metadata files

* chore(go): use k8s container definition in schema

* chore(go): add reusable schema definitions

* chore(go): add further schema definitions

* docs(schema): add description how to use metadata schema
2019-12-17 12:45:53 +01:00
..
metadata.json chore(go): add schema for go metadata files (#1052) 2019-12-17 12:45:53 +01:00
README.md chore(go): add schema for go metadata files (#1052) 2019-12-17 12:45:53 +01:00

JSON Schema

The metadata.json file is a JSON schema for the step metadata located in resource/metadata.

Usage

The file can be used with any YAML schema validator.

VSCode

To use the schema in VSCode, install the vscode-yaml extension to gain schema support for your yaml files. Add the following code to your .vscode/settings.json file in the jenkins-library project:

{
    "yaml.schemas": {
        "./resources/schemas/metadata.json": "resources/metadata/*.yaml"
    }
}