mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-06 11:47:58 -05:00
Software that records a filament in a printer's slot, such as OrcaCloud's printer page, needs the filament's nozzle temperature range, and the library carried none. Each product now carries the range its OrcaSlicer profile gives, and readers that don't know the new fields keep working.
94 lines
4.8 KiB
JSON
94 lines
4.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://github.com/OrcaSlicer/OrcaSlicer/blob/main/scripts/profile_library.schema.json",
|
|
"title": "OrcaSlicer profile library, orca.profile_library.v1",
|
|
"description": "Filament products, printer models and the products that fit each model, compiled from OrcaSlicer's system profiles. Format and reading rules: docs/HLSD/profile-library.md. Readers ignore fields they don't know, so every object allows more properties than it lists.",
|
|
"type": "object",
|
|
"required": ["schema", "version", "channel", "source", "filaments", "universal_filaments", "printer_models"],
|
|
"properties": {
|
|
"schema": { "const": "orca.profile_library.v1" },
|
|
"version": {
|
|
"description": "The OrcaSlicer version without its suffix, then the UTC minute the file was published. Only ever increases within a channel.",
|
|
"type": "string",
|
|
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{12}(?!\\n)$"
|
|
},
|
|
"channel": { "enum": ["nightly", "release"] },
|
|
"source": {
|
|
"type": "object",
|
|
"required": ["orca_version", "commit", "data_hash", "bundles"],
|
|
"properties": {
|
|
"orca_version": { "description": "The full OrcaSlicer version of the profiles, such as 2.6.0-dev.", "type": "string", "minLength": 1 },
|
|
"commit": { "description": "The OrcaSlicer commit the profiles were read from.", "type": "string", "pattern": "^[0-9a-f]{40}(?!\\n)$" },
|
|
"data_hash": {
|
|
"description": "SHA-256 of the file without version and source, as compact JSON with sorted keys.",
|
|
"type": "string",
|
|
"pattern": "^sha256:[0-9a-f]{64}(?!\\n)$"
|
|
},
|
|
"bundles": {
|
|
"description": "Each profile bundle's id and version.",
|
|
"type": "object",
|
|
"additionalProperties": { "type": "string" }
|
|
},
|
|
"tag": { "description": "Release file only: the stable OrcaSlicer release tag the profiles were read at.", "type": "string", "minLength": 1 }
|
|
}
|
|
},
|
|
"filaments": {
|
|
"description": "Every filament product the library knows, keyed by filament_id.",
|
|
"type": "object",
|
|
"propertyNames": { "$ref": "#/$defs/filament_id" },
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"required": ["vendor", "name", "type"],
|
|
"properties": {
|
|
"vendor": { "type": "string" },
|
|
"name": { "type": "string" },
|
|
"type": { "type": "string" },
|
|
"nozzle_temp_min": { "description": "The low end of the product's nozzle temperature range, in °C. Never above nozzle_temp_max.", "type": "integer", "minimum": 1 },
|
|
"nozzle_temp_max": { "description": "The high end of the product's nozzle temperature range, in °C.", "type": "integer", "minimum": 1 }
|
|
},
|
|
"dependentRequired": { "nozzle_temp_min": ["nozzle_temp_max"], "nozzle_temp_max": ["nozzle_temp_min"] }
|
|
}
|
|
},
|
|
"universal_filaments": {
|
|
"description": "Products that fit every printer model, unless the model lists them in hidden.",
|
|
"$ref": "#/$defs/filament_ids"
|
|
},
|
|
"printer_models": {
|
|
"description": "Printer models keyed by model name.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"required": ["vendor", "model_id", "nozzles", "filaments", "hidden", "nozzle_limits"],
|
|
"properties": {
|
|
"vendor": { "description": "The display name of the model's profile bundle.", "type": "string", "minLength": 1 },
|
|
"model_id": { "description": "The model's id in the profiles. Empty when the profiles give it none; readers never index an empty id.", "type": "string" },
|
|
"nozzles": {
|
|
"description": "The model's nozzles, each named as its printer presets name it, such as 0.4 or 0.4HF.",
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": { "type": "string", "minLength": 1 }
|
|
},
|
|
"filaments": { "description": "The model's own products, on top of universal_filaments.", "$ref": "#/$defs/filament_ids" },
|
|
"hidden": { "description": "Products in universal_filaments that this model does not offer.", "$ref": "#/$defs/filament_ids" },
|
|
"nozzle_limits": {
|
|
"description": "Products that fit only some of the model's nozzles, with those nozzles.",
|
|
"type": "object",
|
|
"propertyNames": { "$ref": "#/$defs/filament_id" },
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": { "type": "string", "minLength": 1 }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$defs": {
|
|
"filament_id": { "type": "string", "pattern": "^OF[0-9A-Za-z]{6}(?!\\n)$" },
|
|
"filament_ids": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/filament_id" } }
|
|
}
|
|
}
|