Skip to content

Commit

Permalink
Upgraded to the latest schema version due to Confluent Cloud requirem…
Browse files Browse the repository at this point in the history
…ents. Also supports the circle TIMs better.
  • Loading branch information
drewjj committed Oct 19, 2024
1 parent 73cf341 commit fd38328
Showing 1 changed file with 102 additions and 10 deletions.
112 changes: 102 additions & 10 deletions jpo-ode-core/src/main/resources/schemas/schema-tim.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
Expand All @@ -9,11 +9,11 @@
"$ref": "#/$defs/OdeTimPayload"
}
},
"additionalProperties": false,
"required": [
"metadata",
"payload"
],
"additionalProperties": false,
"$defs": {
"OdeTimMetadata": {
"type": "object",
Expand Down Expand Up @@ -189,7 +189,7 @@
"oneOf": [
{
"type": "array",
"items": [
"prefixItems": [
{
"$ref": "#/$defs/J2735DateFrame"
}
Expand Down Expand Up @@ -258,7 +258,7 @@
"oneOf": [
{
"type": "array",
"items": [
"prefixItems": [
{
"$ref": "#/$defs/J2735DF_Regions"
}
Expand Down Expand Up @@ -472,7 +472,7 @@
"oneOf": [
{
"type": "array",
"items": [
"prefixItems": [
{
"$ref": "#/$defs/J2735OffsetSystem"
}
Expand All @@ -495,7 +495,7 @@
"oneOf": [
{
"type": "array",
"items": [
"prefixItems": [
{
"$ref": "#/$defs/J2735GeometricProjection"
}
Expand Down Expand Up @@ -558,7 +558,7 @@
"properties": {
"NodeXY": {
"type": "array",
"items": [
"prefixItems": [
{
"$ref": "#/$defs/J2735NodeXY"
}
Expand All @@ -582,7 +582,7 @@
"properties": {
"NodeLL": {
"type": "array",
"items": [
"prefixItems": [
{
"$ref": "#/$defs/J2735NodeLL"
}
Expand Down Expand Up @@ -828,7 +828,7 @@
"type": "string"
},
"units": {
"type": "string"
"$ref": "#/$defs/J2735DistanceUnits"
}
},
"required": [
Expand Down Expand Up @@ -909,7 +909,7 @@
"properties": {
"SEQUENCE": {
"type": "array",
"items": [
"prefixItems": [
{
"$ref": "#/$defs/J2735DF_ContentSequenceItem"
}
Expand Down Expand Up @@ -1068,6 +1068,98 @@
"id"
]
},
"J2735DistanceUnits": {
"oneOf": [
{
"type": "object",
"properties": {
"centimeter": {
"type": "string"
}
},
"required": [
"centimeter"
]
},
{
"type": "object",
"properties": {
"cm2-5": {
"type": "string"
}
},
"required": [
"cm2-5"
]
},
{
"type": "object",
"properties": {
"decimeter": {
"type": "string"
}
},
"required": [
"decimeter"
]
},
{
"type": "object",
"properties": {
"meter": {
"type": "string"
}
},
"required": [
"meter"
]
},
{
"type": "object",
"properties": {
"kilometer": {
"type": "string"
}
},
"required": [
"kilometer"
]
},
{
"type": "object",
"properties": {
"foot": {
"type": "string"
}
},
"required": [
"foot"
]
},
{
"type": "object",
"properties": {
"yard": {
"type": "string"
}
},
"required": [
"yard"
]
},
{
"type": "object",
"properties": {
"mile": {
"type": "string"
}
},
"required": [
"mile"
]
}
]
},
"BooleanObject": {
"oneOf": [
{
Expand Down

0 comments on commit fd38328

Please sign in to comment.