Skip to content

Commit

Permalink
fix(rust/signed_doc): update meta.schema.json with definitions for uu…
Browse files Browse the repository at this point in the history
…id v4 and v7
  • Loading branch information
saibatizoku committed Dec 10, 2024
1 parent b22a672 commit a7680af
Showing 1 changed file with 26 additions and 31 deletions.
57 changes: 26 additions & 31 deletions rust/signed_doc/meta.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,52 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Catalyst signed document metadata json schema",
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"definitions": {
"uuidv4": {
"type": "string",
"format": "uuid",
"examples": [
"0ce8ab38-9258-4fbc-a62e-7faa6e58318f"
]
},
"id": {
"uuidv7": {
"type": "string",
"format": "ulid",
"format": "uuid",
"examples": [
"01JE99R792FWCQFZPHJH1R87RB"
"0193ae7c-8131-7fe6-91f0-b451ea229b11"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"$ref": "#/definitions/uuidv4"
},
"id": {
"$ref": "#/definitions/uuidv7"
},
"ver": {
"type": "string",
"format": "ulid",
"examples": [
"01JE99R792FWCQFZPHJH1R87RB"
]
"$ref": "#/definitions/uuidv7"
},
"ref": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
}
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
},
"ver": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
}
}
}
Expand All @@ -58,21 +59,18 @@
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
}
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
},
"ver": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
}
}
}
Expand All @@ -84,21 +82,18 @@
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
}
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
},
"ver": {
"type": "string",
"format": "ulid"
"$ref": "#/definitions/uuidv7"
}
}
}
Expand All @@ -113,4 +108,4 @@
"id",
"ver"
]
}
}

0 comments on commit a7680af

Please sign in to comment.