Skip to content

Commit

Permalink
message-metadata split (#63)
Browse files Browse the repository at this point in the history
* message-metadata split

Signed-off-by: Clemens Vasters <[email protected]>

* baseDefinitionUrl reference

Signed-off-by: Clemens Vasters <[email protected]>

* spec links

Signed-off-by: Clemens Vasters <[email protected]>

* adjusted for core spec changes

Signed-off-by: Clemens Vasters <[email protected]>

* adjusted for new lowercase rules

Signed-off-by: Clemens Vasters <[email protected]>

* tweaks for multiple ifvalue in the same object

Signed-off-by: Clemens Vasters <[email protected]>

* common attribute casing

Signed-off-by: Clemens Vasters <[email protected]>

---------

Signed-off-by: Clemens Vasters <[email protected]>
  • Loading branch information
clemensv authored Dec 7, 2023
1 parent dff9393 commit a9caf9b
Show file tree
Hide file tree
Showing 19 changed files with 5,137 additions and 4,854 deletions.
929 changes: 465 additions & 464 deletions cloudevents/schemas/document-schema.avsc

Large diffs are not rendered by default.

1,311 changes: 657 additions & 654 deletions cloudevents/schemas/document-schema.json

Large diffs are not rendered by default.

754 changes: 380 additions & 374 deletions cloudevents/schemas/openapi.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions cloudevents/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,10 @@ While the CloudEvents Registry is primarily motivated by enabling development of
CloudEvents-based event flows, the registry is not limited to CloudEvents. It
can be used to describe any asynchronous messaging or eventing endpoint and its
messages, including endpoints that do not use CloudEvents at all. The [Message
Formats](../message/spec.md#message-formats) section therefore not only
describes the attribute meta-schema for CloudEvents, but also meta-schemas for
the native message envelopes of MQTT, AMQP, and other messaging protocols.
Formats](../message/spec.md#metadata-formats-and-message-bindings) section
therefore not only describes the attribute meta-schema for CloudEvents, but also
meta-schemas for the native message envelopes of MQTT, AMQP, and other messaging
protocols.

The registry is designed to be extensible to support any structured data
encoding and related schemas for message or event payloads. The [Schema
Expand Down Expand Up @@ -351,17 +352,17 @@ embedded or referenced. Any of the three sub-registries MAY be omitted.
"$schema": "https://cloudevents.io/schemas/registry",
"specversion": "0.4-wip",

"endpointsUrl": "URL",
"endpointsCount": INT,
"endpointsurl": "URL",
"endpointscount": INT,
"endpoints": { ... },

"definitionGroupsUrl": "URL",
"definitionGroupsCount": INT,
"definitionGroups": { ... },
"definitiongroupsurl": "URL",
"definitiongroupscount": INT,
"definitiongroups": { ... },

"schemaGroupsUrl": "URL",
"schemaGroupsCount": INT,
"schemaGroups": { ... }
"schemagroupsurl": "URL",
"schemagroupscount": INT,
"schemagroups": { ... }
}
```

Expand Down
40 changes: 20 additions & 20 deletions core/templates/xregistry_openapi_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@
}
}
},
"/{%-groupNamePlural-%}/{groupId}": {
"/{%-groupNamePlural-%}/{groupid}": {
"parameters": [
{
"$ref": "#/components/parameters/groupId"
"$ref": "#/components/parameters/groupid"
}
],
"get": {
Expand Down Expand Up @@ -236,10 +236,10 @@
}
}
},
"/{%-groupNamePlural-%}/{groupId}/{%-resourceNamePlural-%}": {
"/{%-groupNamePlural-%}/{groupid}/{%-resourceNamePlural-%}": {
"parameters": [
{
"$ref": "#/components/parameters/groupId"
"$ref": "#/components/parameters/groupid"
}
],
"get": {
Expand Down Expand Up @@ -311,13 +311,13 @@
}
}
},
"/{%-groupNamePlural-%}/{groupId}/{%-resourceNamePlural-%}/{resourceId}": {
"/{%-groupNamePlural-%}/{groupid}/{%-resourceNamePlural-%}/{resourceid}": {
"parameters": [
{
"$ref": "#/components/parameters/groupId"
"$ref": "#/components/parameters/groupid"
},
{
"$ref": "#/components/parameters/resourceId"
"$ref": "#/components/parameters/resourceid"
},
{
"in": "query",
Expand Down Expand Up @@ -604,13 +604,13 @@
}
}
},
"/{%-groupNamePlural-%}/{groupId}/{%-resourceNamePlural-%}/{resourceId}/versions": {
"/{%-groupNamePlural-%}/{groupid}/{%-resourceNamePlural-%}/{resourceid}/versions": {
"parameters": [
{
"$ref": "#/components/parameters/groupId"
"$ref": "#/components/parameters/groupid"
},
{
"$ref": "#/components/parameters/resourceId"
"$ref": "#/components/parameters/resourceid"
}
],
"get": {
Expand Down Expand Up @@ -672,16 +672,16 @@
}
}
},
"/{%-groupNamePlural-%}/{groupId}/{%-resourceNamePlural-%}/{resourceId}/versions/{versionId}": {
"/{%-groupNamePlural-%}/{groupid}/{%-resourceNamePlural-%}/{resourceid}/versions/{versionid}": {
"parameters": [
{
"$ref": "#/components/parameters/groupId"
"$ref": "#/components/parameters/groupid"
},
{
"$ref": "#/components/parameters/resourceId"
"$ref": "#/components/parameters/resourceid"
},
{
"$ref": "#/components/parameters/versionId"
"$ref": "#/components/parameters/versionid"
},
{
"in": "query",
Expand Down Expand Up @@ -875,9 +875,9 @@
"format": "uri-reference"
}
},
"groupId": {
"groupid": {
"in": "path",
"name": "groupId",
"name": "groupid",
"description": "The id of the group",
"required": true,
"schema": {
Expand All @@ -886,9 +886,9 @@
"format": "uri-reference"
}
},
"resourceId": {
"resourceid": {
"in": "path",
"name": "resourceId",
"name": "resourceid",
"description": "The id of the schema",
"required": true,
"schema": {
Expand All @@ -897,9 +897,9 @@
"format": "uri-reference"
}
},
"versionId": {
"versionid": {
"in": "path",
"name": "versionId",
"name": "versionid",
"description": "The id of the schema",
"required": true,
"schema": {
Expand Down
Loading

0 comments on commit a9caf9b

Please sign in to comment.