expose JSON schema for inspection #351

Merged
kiara merged 1 commit from kiara/fediversity:expose-json-schema into main 2025-06-04 19:15:28 +02:00
Owner

intending to document more about how our schemas work, i found our code currently buries this somewhere in /nix/store.
this change exposes that generated file in the project structure as well, facilitating inspection of our data schema in this more generic format.

intending to document more about how our schemas work, i found our code currently buries this somewhere in `/nix/store`. this change exposes that generated file in the project structure as well, facilitating inspection of our data schema in this more generic format.
expose JSON schema for inspection
All checks were successful
/ check-pre-commit (pull_request) Successful in 13s
/ check-peertube (pull_request) Successful in 20s
/ check-panel (pull_request) Successful in 1m14s
/ check-deployment-basic (pull_request) Successful in 43m40s
/ check-deployment-cli (pull_request) Successful in 43m38s
f860b9af93
Niols approved these changes 2025-06-04 17:02:44 +02:00
@ -15,3 +15,3 @@
fileset = intersection (gitTracked ../../.) ../src;
};
pyproject = with lib; fromTOML pyproject-toml;
pyproject = fromTOML pyproject-toml;
Owner

This will now use builtins.fromTOML, I believe, making it ever so slightly less reproducible in the far future.

This will now use `builtins.fromTOML`, I believe, making it ever so slightly less reproducible in the far future.
Author
Owner

i don't think lib.fromTOML actually exists?

i don't think `lib.fromTOML` actually exists?
Owner

Oh! Then indeed, we can clean this up.

Oh! Then indeed, we can clean this up.
Niols marked this conversation as resolved
@ -54,0 +43,4 @@
{
from = schema;
to = "./panel/configuration/schema.json";
}
Owner

Am I missing something or is this PR really just about these four lines, the rest just moving around but not changing code?

Am I missing something or is this PR really just about these four lines, the rest just moving around but not changing code?
Author
Owner

correct!

correct!
Owner

Looks good to me, then!

Looks good to me, then!
kiara marked this conversation as resolved
kiara merged commit 69579fea1c into main 2025-06-04 19:15:28 +02:00
kiara deleted branch expose-json-schema 2025-06-04 19:15:28 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fediversity/fediversity!351
No description provided.