OS
Schema Hub

GroupVersionForDiscovery

GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/meta.api.k8s.io/GroupVersionForDiscovery_v1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/meta.api.k8s.io/GroupVersionForDiscovery_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

groupVersionstringRequired
groupVersion specifies the API group and version in the form "group/version"
versionstringRequired
version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.