Skip to content

add JSON Schema#37

Open
StefanFl wants to merge 4 commits intoEcma-TC54:mainfrom
StefanFl:json-schema
Open

add JSON Schema#37
StefanFl wants to merge 4 commits intoEcma-TC54:mainfrom
StefanFl:json-schema

Conversation

@StefanFl
Copy link

@StefanFl StefanFl commented Jan 8, 2026

This JSON Schema can be used to check the syntax of a CLE document. Some remarks:

  • The $id https://cle.example.com/schema/cle-1.0.0.schema.json fits to the specification document, but the hostname looks a bit random.
  • Rules like the event id must be in descending order or the supportId must reference to a support policy defined in the definitions section can not be checked with the JSON Schema.
  • The Schema has been tested with some CLE documents written by myself, but some independing testing would be great.
  • The Schema is a quite lengthy, but it was the only way I could make it work as best as possible.

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's lots of changes still needed here, but it's a great first start!

@@ -0,0 +1,528 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cle.example.com/schema/cle-1.0.0.schema.json",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i think this needs to be an actual URL on tc54.org. @stevespringett, can we get this (and the spec) deployed there?

@StefanFl
Copy link
Author

StefanFl commented Jan 9, 2026

Thanks @ljharb for the initial review. I have made the definitions more clear. There are still property definitions without types. These are needed because of how "additionalProperties": false behaves.

@noqcks
Copy link
Collaborator

noqcks commented Feb 19, 2026

@stevespringett to get the schema domain at tc54.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants