Skip to content

Commit

Permalink
Week of Jan 6 changes
Browse files Browse the repository at this point in the history
- clarify errors for bad paths and methods
- Remove "origin"
- add `/capabilities` API and "capabilities" Registry attr
  - requires `?inline=capabilities` reads, just presence on writes(like model)
  - remove "schemas" from model, moved into "capabilities"
- add 'xid'. Change xref to start with /
- add "labels" to model schema : Registry, Groups and Resources
  - add a "compatiblewith" well-known label

Fixes xregistry#199
Fixes xregistry#216
Fixes xregistry#217
Fixes xregistry#213
Fixes xregistry#210
Fixes xregistry#211

Signed-off-by: Doug Davis <[email protected]>
  • Loading branch information
duglin committed Dec 27, 2024
1 parent 5350918 commit 9be7948
Show file tree
Hide file tree
Showing 25 changed files with 885 additions and 978 deletions.
3 changes: 0 additions & 3 deletions cloudevents/model.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"schemas": [
"xRegistry-json"
],
"groups": {
"$includes": [
"../endpoint/model.json#groups",
Expand Down
60 changes: 30 additions & 30 deletions cloudevents/schemas/document-schema.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
{
"name": "self",
"type": "string",
"doc": "URI of the object"
"doc": "URL of the object"
},
{
"name": "xid",
"type": "string",
"doc": "Relative URL of the object"
},
{
"name": "description",
Expand Down Expand Up @@ -64,11 +69,6 @@
},
"doc": "Labels for the object"
},
{
"name": "origin",
"type": "string",
"doc": "URI of the object origin"
},
{
"name": "createdat",
"type": [
Expand Down Expand Up @@ -247,7 +247,12 @@
{
"name": "self",
"type": "string",
"doc": "URI of the object"
"doc": "URL of the object"
},
{
"name": "xid",
"type": "string",
"doc": "Relative URL of the object"
},
{
"name": "description",
Expand Down Expand Up @@ -276,11 +281,6 @@
},
"doc": "Labels for the object"
},
{
"name": "origin",
"type": "string",
"doc": "URI of the object origin"
},
{
"name": "createdat",
"type": [
Expand Down Expand Up @@ -530,7 +530,12 @@
{
"name": "self",
"type": "string",
"doc": "URI of the object"
"doc": "URL of the object"
},
{
"name": "xid",
"type": "string",
"doc": "Relative URL of the object"
},
{
"name": "description",
Expand Down Expand Up @@ -559,11 +564,6 @@
},
"doc": "Labels for the object"
},
{
"name": "origin",
"type": "string",
"doc": "URI of the object origin"
},
{
"name": "createdat",
"type": [
Expand Down Expand Up @@ -648,7 +648,12 @@
{
"name": "self",
"type": "string",
"doc": "URI of the object"
"doc": "URL of the object"
},
{
"name": "xid",
"type": "string",
"doc": "Relative URL of the object"
},
{
"name": "description",
Expand Down Expand Up @@ -677,11 +682,6 @@
},
"doc": "Labels for the object"
},
{
"name": "origin",
"type": "string",
"doc": "URI of the object origin"
},
{
"name": "createdat",
"type": [
Expand Down Expand Up @@ -745,7 +745,12 @@
{
"name": "self",
"type": "string",
"doc": "URI of the object"
"doc": "URL of the object"
},
{
"name": "xid",
"type": "string",
"doc": "Relative URL of the object"
},
{
"name": "description",
Expand Down Expand Up @@ -774,11 +779,6 @@
},
"doc": "Labels for the object"
},
{
"name": "origin",
"type": "string",
"doc": "URI of the object origin"
},
{
"name": "createdat",
"type": [
Expand Down
72 changes: 36 additions & 36 deletions cloudevents/schemas/document-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@
"self": {
"type": "string",
"format": "uri",
"description": "URI of the object"
"description": "URL of the object"
},
"xid": {
"type": "string",
"format": "uri",
"description": "Relative URL of the object"
},
"description": {
"type": "string",
Expand All @@ -55,11 +60,6 @@
"type": "object",
"description": "Labels for the object"
},
"origin": {
"type": "string",
"format": "uri",
"description": "URI of the object origin"
},
"createdat": {
"type": "string",
"format": "date-time",
Expand Down Expand Up @@ -1096,7 +1096,12 @@
"self": {
"type": "string",
"format": "uri",
"description": "URI of the object"
"description": "URL of the object"
},
"xid": {
"type": "string",
"format": "uri",
"description": "Relative URL of the object"
},
"description": {
"type": "string",
Expand All @@ -1111,11 +1116,6 @@
"type": "object",
"description": "Labels for the object"
},
"origin": {
"type": "string",
"format": "uri",
"description": "URI of the object origin"
},
"createdat": {
"type": "string",
"format": "date-time",
Expand Down Expand Up @@ -1773,7 +1773,12 @@
"self": {
"type": "string",
"format": "uri",
"description": "URI of the object"
"description": "URL of the object"
},
"xid": {
"type": "string",
"format": "uri",
"description": "Relative URL of the object"
},
"description": {
"type": "string",
Expand All @@ -1788,11 +1793,6 @@
"type": "object",
"description": "Labels for the object"
},
"origin": {
"type": "string",
"format": "uri",
"description": "URI of the object origin"
},
"createdat": {
"type": "string",
"format": "date-time",
Expand Down Expand Up @@ -1841,7 +1841,12 @@
"self": {
"type": "string",
"format": "uri",
"description": "URI of the object"
"description": "URL of the object"
},
"xid": {
"type": "string",
"format": "uri",
"description": "Relative URL of the object"
},
"description": {
"type": "string",
Expand All @@ -1856,11 +1861,6 @@
"type": "object",
"description": "Labels for the object"
},
"origin": {
"type": "string",
"format": "uri",
"description": "URI of the object origin"
},
"createdat": {
"type": "string",
"format": "date-time",
Expand Down Expand Up @@ -1939,7 +1939,12 @@
"self": {
"type": "string",
"format": "uri",
"description": "URI of the object"
"description": "URL of the object"
},
"xid": {
"type": "string",
"format": "uri",
"description": "Relative URL of the object"
},
"description": {
"type": "string",
Expand All @@ -1954,11 +1959,6 @@
"type": "object",
"description": "Labels for the object"
},
"origin": {
"type": "string",
"format": "uri",
"description": "URI of the object origin"
},
"createdat": {
"type": "string",
"format": "date-time",
Expand Down Expand Up @@ -2017,7 +2017,12 @@
"self": {
"type": "string",
"format": "uri",
"description": "URI of the object"
"description": "URL of the object"
},
"xid": {
"type": "string",
"format": "uri",
"description": "Relative URL of the object"
},
"description": {
"type": "string",
Expand All @@ -2032,11 +2037,6 @@
"type": "object",
"description": "Labels for the object"
},
"origin": {
"type": "string",
"format": "uri",
"description": "URI of the object origin"
},
"createdat": {
"type": "string",
"format": "date-time",
Expand Down
Loading

0 comments on commit 9be7948

Please sign in to comment.