Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Declare the configuration schema against draft 2020-12

cinerealf8bb2e0d55f3
diff --git a/config/config-schema.json b/config/config-schema.json
index d0cad56f30..08052e404e 100644
--- a/config/config-schema.json
+++ b/config/config-schema.json
@@ -1,5 +1,5 @@
{
- "$schema": "https://json-schema.org/draft-07/schema",
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "PeerTube Configuration",
"description": "Full configuration schema for a PeerTube server instance. Corresponds to the YAML configuration files (default.yaml / production.yaml). ",
"type": "object",
diff --git a/scripts/generate-config-schema.ts b/scripts/generate-config-schema.ts
index 4cfe19e830..f70d2842db 100644
--- a/scripts/generate-config-schema.ts
+++ b/scripts/generate-config-schema.ts
@@ -190,7 +190,7 @@ const parsed = load(yamlContent) as Record<string, unknown>
const commentMap = extractComments(yamlContent)
const schema: JsonSchema = {
- $schema: 'https://json-schema.org/draft-07/schema',
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
title: 'PeerTube Configuration',
description:
'Full configuration schema for a PeerTube server instance. ' +