Plan .yaml File Structure (apply command)

apiVersion: api-management.sensedia.com/v1
kind: Plan
metadata:
  # Open text description with only example values
  type: production
  owner: engineering
spec:
  # Identifying fields
  name: "Basic Plan"
  # Other fields
  description: "string"
  apiRef:
     name: "Open Banking API"
     version: "1.0.0"
  default: true | false

Plan Schema (apply command)

{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "$id": "https://sensedia.com/cli/api-management/plan",
  "comment": "Plan Schema",
  "type": "object",
  "properties": {
    "apiVersion": {
      "type": "string",
      "enum": [
        "api-management.sensedia.com/v1"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "Plan"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "spec": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "apiRef"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "apiRef": {
          "$ref": "#/$defs/apiRef"
        },
        "default": {
          "type": "boolean"
        }
      }
    }
  },
  "required": [
    "apiVersion",
    "kind",
    "spec"
  ],
  "$defs": {
    "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]