Skip to content

Commit 404396e

Browse files
authored
Merge pull request #34 from Artifizer/main
feat: align schema handling with GTS spec v0.7
2 parents ebb02bd + 9f5b00a commit 404396e

11 files changed

Lines changed: 371 additions & 10 deletions

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule ".gts-spec"]
2+
path = .gts-spec
3+
url = https://github.com/GlobalTypeSystem/gts-spec.git

.gts-spec

Submodule .gts-spec added at 00472ee

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ clean: ## Clean node_modules and build artifacts
5858

5959
health: ## Check server health
6060
@curl -s http://localhost:7806/health || echo "Server not responding"
61+
62+
update-spec: ## Update gts-spec submodule to latest
63+
git submodule update --remote .gts-spec

examples/events/schemas/gts.x.commerce.orders.order.v1.0~.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "gts.x.commerce.orders.order.v1.0~",
2+
"$id": "gts://gts.x.commerce.orders.order.v1.0~",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "Order",
55
"description": "Base order schema definition for e-commerce orders",

examples/events/schemas/gts.x.core.events.topic.v1~.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "gts.x.core.events.topic.v1~",
2+
"$id": "gts://gts.x.core.events.topic.v1~",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "Event Topic (Stream)",
55
"type": "object",

examples/events/schemas/gts.x.core.events.type.v1~.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "gts.x.core.events.type.v1~",
2+
"$id": "gts://gts.x.core.events.type.v1~",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "Event Envelope (Common Fields)",
55
"type": "object",

examples/events/schemas/gts.x.core.events.type.v1~x.commerce.orders.order_placed.v1~.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"$id": "gts.x.core.events.type.v1~x.commerce.orders.order_placed.v1.0~",
2+
"$id": "gts://gts.x.core.events.type.v1~x.commerce.orders.order_placed.v1.0~",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "Event Instance Schema: order.placed",
55
"type": "object",
66
"allOf": [
7-
{ "$ref": "gts.x.core.events.type.v1~" },
7+
{ "$ref": "gts://gts.x.core.events.type.v1~" },
88
{
99
"type": "object",
1010
"required": ["type", "payload", "subjectType"],

examples/events/schemas/gts.x.core.events.type.v1~x.core.idp.contact_created.v1~.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"$id": "gts.x.core.events.type.v1~x.core.idp.contact_created.v1.0~",
2+
"$id": "gts://gts.x.core.events.type.v1~x.core.idp.contact_created.v1.0~",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "Event Instance Schema: contact.created",
55
"description": "Event instance schema for the user.created event type",
66
"type": "object",
77
"allOf": [
8-
{ "$ref": "gts.x.core.events.type.v1~" },
8+
{ "$ref": "gts://gts.x.core.events.type.v1~" },
99
{
1010
"type": "object",
1111
"required": ["type", "payload", "subjectType"],

examples/events/schemas/gts.x.core.idp.contact.v1.0~.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "gts.x.core.idp.contact.v1.0~",
2+
"$id": "gts://gts.x.core.idp.contact.v1.0~",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "User",
55
"type": "object",

examples/events/schemas/gts.x.core.idp.contact.v1.0~x.core.idp.billing_contact.v1.0~.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"$id": "gts.x.core.idp.contact.v1.0~x.core.idp.billing_contact.v1.0~",
2+
"$id": "gts://gts.x.core.idp.contact.v1.0~x.core.idp.billing_contact.v1.0~",
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"title": "User",
55
"type": "object",
66
"allOf": [
7-
{ "$ref": "gts.x.core.idp.contact.v1.0~" },
7+
{ "$ref": "gts://gts.x.core.idp.contact.v1.0~" },
88
{
99
"type": "object",
1010
"properties": {

0 commit comments

Comments
 (0)