-
-
Notifications
You must be signed in to change notification settings - Fork 117
[schema] Application Service Registration meta schema #2132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Kai A. Hiller <[email protected]>
Signed-off-by: Kai A. Hiller <[email protected]>
There don't seem to be |
@tulir: I don’t think that is necessary. These two files are special in that they a) are useful as JSON Schema files independently of OpenAPI definitions. While OpenAPI has well-defined implicit meta schemas, that’s not the case for JSON Schemas. |
I agree that OpenAPI files don't necessarily need that because they have their own schema version designator already. However, we also have event schemas written as JSON Schema files (despite them having Would you be willing to extend the PR to other JSON Schema files under |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be willing to extend the PR to other JSON Schema files under
data
? Would actually be interesting to see if specifying the schema would break anything.
@V02460 what do you think?
Thanks for the ping :) Are we talking about the files under data/event-schemas and data/schemas? I could add meta schemas for them, too. |
Both; but |
I added the meta schema to all the event schemas. For the other files in the |
Also I found out that schemas are already checked against matrix-spec/scripts/check-json-schemas.py Line 139 in fb4a0d8
matrix-spec/scripts/check-json-schemas.py Lines 175 to 182 in fb4a0d8
|
Do I need to add a second newsfragment somewhere for the event schema changes? |
@V02460 event definitions are currently considered to be part of the C-S API. A newsfile under |
Sets the meta schema for the Application Service Registration to
https://json-schema.org/draft/2020-12/schema
. Specifying the meta schema clarifies the semantics of the schema files and allows tools to consume it correctly.It seems to me that the
registration.yaml
andnamespace_list.yaml
are completely disjunct from the other OpenAPI schemas in thedata/api/application-service
folder. Because the other files follow OpenAPI v3.1.0, I still chose to use JSON Schema version 2020-12, which is the version that OpenAPI v3.1.0 data types and schema objects are based on.Relevant parts of the OpenAPI v3.1.0 spec that justify the inclusion of the
$schema
keyword:From https://spec.openapis.org/oas/v3.1.0.html#schema-object
Pull Request Checklist
Preview: https://pr2132--matrix-spec-previews.netlify.app