Estructura del Archivo .yaml de ApiAppLink (comando apply)

apiVersion: api-management.sensedia.com/v1
kind: ApiAppLink
metadata:
  # Descripción de texto libre que sólo incluye valores de ejemplo
  type: production
  owner: engineering
spec:
  # Campos de identificación
  apiRef:
     name: "Open Banking API"
     version: "1.0.0"
  appRef:
     name: "My App"
  # Otros campos
  planRefs:
  - name: "my plan"
{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "$id": "https://sensedia.com/cli/api-management/apiapplink/apply",
  "type": "object",
  "properties": {
    "apiVersion": {
      "type": "string",
      "enum": [
        "api-management.sensedia.com/v1"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "ApiAppLink"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "spec": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "apiRef",
        "appRef",
        "planRefs"
      ],
      "properties": {
        "apiRef": {
          "$ref": "#/$defs/apiRef"
        },
        "appRef": {
          "$ref": "#/$defs/namedRef"
        },
        "planRefs": {
          "type": "array",
          "item": {
            "$ref": "#/$defs/namedRef"
          },
          "minItems": 1,
          "uniqueItems": true
        }
      }
    }
  },
  "required": [
    "apiVersion",
    "kind",
    "spec"
  ],
  "$defs": {
    "namedRef": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ]
    },
    "apiRef": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "version"
      ]
    }
  }
}
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]