Skip to content

Commit

Permalink
attr names SHOULD start with a letter
Browse files Browse the repository at this point in the history
Fixed #1285

Signed-off-by: Doug Davis <[email protected]>
  • Loading branch information
Doug Davis committed May 23, 2024
1 parent e79d7b2 commit 0be7157
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cloudevents/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,15 @@ or clashes with the permissible character set for identifiers in common
languages are prevented.

In order to maximize the likelihood of interoperability and portability across
transport protocols and messaging formats, CloudEvents attribute names MUST
consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the
ASCII character set. Attribute names SHOULD be descriptive and terse and SHOULD
NOT exceed 20 characters in length.

CloudEvent attributes MUST NOT have the name `data`; this name is reserved as it
is used in some event formats.
transport protocols and messaging formats, CloudEvents attribute names have
the following constraints:
- MUST consist of lower-case letters [a-z] or digits [0-9] from the ASCII
character set.
- SHOULD start with a letter.
- MUST be at least one character in length, and SHOULD NOT exceed 20 characters.
- SHOULD be descriptive and terse.
- MUST NOT use the name `data` as this is reserved for use by some event
formats.

### Type System

Expand Down

0 comments on commit 0be7157

Please sign in to comment.