{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.stfform.at/stf.bone.schema.json",
	"title": "STF Bone",
	"description": "Represents a bone in a 3d skeleton. Analogous to a Blender Bone, Unity GameObject, Godot Skeleton3D-bone.",
	"allOf": [{ "$ref": "https://schema.stfform.at/stf.schema.json#/$defs/stf_node_resource" }],
	"properties": {
		"type": {
			"const": "bone"
		},
		"translation": {
			"type": "array",
			"items": {
				"type": "number"
			},
			"minItems": 3,
			"maxItems": 3,
			"default": [0, 0, 0],
			"description": "Translation (XYZ)"
		},
		"rotation": {
			"type": "array",
			"items": {
				"type": "number"
			},
			"minItems": 4,
			"maxItems": 4,
			"default": [0, 0, 0, 1],
			"description": "Quaternion rotation (XYZW)"
		},
		"connected": {
			"type": "boolean",
			"description": "Whether the bone is connected to its parent, if the parent bones tip happens to match this bones translation."
		},
		"length": {
			"type": "number",
			"minimum": 0
		}
	},
	"required": [
		"type"
	],
	"additionalProperties": false
}