spec_shared_entity_schema.md

February 23, 2021 ยท View on GitHub

Shared Entity Schema

The Entity Schema contains fields that are common (shared) to all OpenWhisk entities (e.g., Actions, Triggers, Rules, etc.).

Fields

Key Name Required Value Type Default Description

description

no

string256

N/A

The optional description for the Entity.

displayName

no

string16

N/A

This is the optional name that will be displayed on small form-factor devices.

annotations

no

map of

N/A

The optional annotations for the Entity.

Grammar

description: <string256>
displayName: <string16>
annotations: <map of <string>>

Requirements

  • Non-required fields MAY be stored as annotations within the OpenWhisk framework after they have been used for processing.
  • Description string values SHALL be limited to 256 characters.
  • DisplayName string values SHALL be limited to 16 characters.
  • Annotations MAY be ignored by target consumers of the Manifest file as they are considered data non-essential to the deployment of management of OpenWhisk entities themselves.
  • Target consumers MAY preserve (persist) these values, but are not required to.
  • For any OpenWhisk Entity, the maximum size of all Annotations SHALL be 256 characters.

Notes

  • Several, non-normative Annotation keynames and allowed values for (principally for User Interface (UI) design) may be defined below for optional usage.

Index