feat: most of the schemas done
This commit is contained in:
@@ -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?:\/\/"
|
||||
}
|
||||
@@ -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" }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user