Skip to content

Commit 919050f

Browse files
committed
Week of March 3
- fix typos in doc/contributors.md - get rid of `clientrequired` and rename `serverrequired` to just `required`. It now means "this attr MUST have a non-null value" without saying who provides it. - mentioned we're http-only today but it might change in the future, and at that time we'll have a clean separation between core & http - Add an "Implmentation Customizations" section to talk about adding authN/Z and other types of customization logic - Allow ANY model changes as long as all entities are compliant with new model prior to completing the request. Server MAY choose to update data, or reject. - Remove "maxmaxversions" capability - Servers must accept "0" for maxversions but can prune at any time, even at 1. - Add "relaxednames" aspect to "object" typed attributes, to allow "-" in names. And updated our model files to use "-" in some attribute names Fixes: #267 Fixes: #230 Fixes: #264 Fixes: #270 Fixes: #271 Fixes: #273 Fixes: #272 Signed-off-by: Doug Davis <[email protected]>
1 parent 6d8204c commit 919050f

File tree

13 files changed

+1351
-554
lines changed

13 files changed

+1351
-554
lines changed

cloudevents/schemas/document-schema.json

Lines changed: 271 additions & 78 deletions
Large diffs are not rendered by default.

cloudevents/schemas/openapi.json

Lines changed: 192 additions & 59 deletions
Large diffs are not rendered by default.

core/model.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@
55
"type": "string",
66
"readonly": true,
77
"immutable": true,
8-
"serverrequired": true,
8+
"required": true,
99
"default": "0.5"
1010
},
1111
"registryid": {
1212
"name": "registryid",
1313
"type": "string",
1414
"immutable": true,
15-
"serverrequired": true
15+
"required": true
1616
},
1717
"self": {
1818
"name": "self",
1919
"type": "url",
2020
"readonly": true,
21-
"serverrequired": true
21+
"required": true
2222
},
2323
"xid": {
2424
"name": "xid",
2525
"type": "xid",
2626
"readonly": true,
27-
"serverrequired": true
27+
"required": true
2828
},
2929
"epoch": {
3030
"name": "epoch",
3131
"type": "uinteger",
32-
"serverrequired": true
32+
"required": true
3333
},
3434
"name": {
3535
"name": "name",

core/primer.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,3 +657,20 @@ the authors chose to have the server ignore unknown query parameters. It is
657657
worth noting that the specification says they SHOULD be ignored, not that they
658658
MUST be ignored. So there is room for an implementation to be very picky if
659659
needed, but at the risk of potentially causing interoperability problems.
660+
661+
# Updating attributes with `ifvalues`
662+
663+
The `ifvalues` feature might be a new concept for some readers, so a point
664+
of clarification might be useful. If an attribute is defined with an `ifvalues`
665+
aspect, then if that attribute's value changes it is possible that the
666+
set of sibling attributes that are part of that entity's model could change
667+
due to a new `ifvalues` match (or due to no match at all).
668+
669+
When a client is performing a write operation that changes that attribute's
670+
value, the client must ensure that the net result of the changes are compliant
671+
with the resulting model. Meaning, if that attribute's new value adds or
672+
removes attributes then the client might need to also change other attributes
673+
in the entity in order to be model compliant.
674+
675+
Likewise, implementations of the server must validate the entire entity
676+
against the new model, not just a subset of the entity's attributes.

core/spec.md

Lines changed: 119 additions & 83 deletions
Large diffs are not rendered by default.

docs/contributors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Contributions do not constitute an official endorsement.
1616
- **Google**
1717
- Jon Skeet - [@jskeet](https://github.com/jskeet)
1818

19-
- ** HDI Global SE**
19+
- **HDI Global SE**
2020
- Manuel Ottlik - [@manuelottlik](https://github.com/manuelottlik)
2121

2222
- **Microsoft**
2323
- Clemens Vasters - [@clemensv](https://github.com/clemensv)
2424

2525
- **Particular Software**
26-
- Laila Bourgria - [@lailabougria](https://github.com/lailabougria)
26+
- Laila Bougria - [@lailabougria](https://github.com/lailabougria)
2727

2828
- **SAP**
2929
- Klaus Deissner - [@deissnerk](https://github.com/deissnerk)

0 commit comments

Comments
 (0)