feat: most of the schemas done

This commit is contained in:
2026-09-02 18:05:49 +00:00
parent 0753703351
commit 6381c27c48
62 changed files with 1101 additions and 46 deletions
@@ -0,0 +1,8 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/common/color_hex.schema.json",
"title": "CommonColorHexSchema",
"description": "Schema for hex color. Technically alpha (last two chars) should be always FF, but...",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}$"
}
@@ -0,0 +1,8 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/common/file_url.schema.json",
"title": "CommonFileUrlSchema",
"type": "string",
"format": "uri",
"pattern": "^(?:file|ftp):\/\/"
}
@@ -0,0 +1,8 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/common/http_url.schema.json",
"title": "CommonHttpUrlSchema",
"type": "string",
"format": "uri",
"pattern": "^https?:\/\/"
}
+4 -3
View File
@@ -2,7 +2,8 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/common/url.schema.json",
"title": "CommonUrlSchema",
"type": "string",
"format": "uri",
"pattern": "^https?://"
"oneOf": [
{ "$ref": "./http_url.schema.json" },
{ "$ref": "./file_url.schema.json" }
]
}