| Crates.io | bevy_map_schema |
| lib.rs | bevy_map_schema |
| version | 0.3.1 |
| created_at | 2025-12-22 10:34:57.22199+00 |
| updated_at | 2026-01-20 11:17:53.442986+00 |
| description | Schema validation for bevy_map_editor entity types |
| homepage | |
| repository | https://github.com/jbuehler23/bevy_map_editor |
| max_upload_size | |
| id | 1999495 |
| size | 165,061 |
Schema validation for entity properties in the bevy_map_editor ecosystem.
Part of bevy_map_editor.
| Type | Description |
|---|---|
string |
Text value |
int |
Integer number |
float |
Decimal number |
bool |
True/false |
color |
Hex color (#RRGGBB) |
enum |
Custom enum type |
Define entity types in your map project:
{
"schema": {
"data_types": {
"Enemy": {
"color": "#FF0000",
"placeable": true,
"marker_size": 16,
"properties": [
{ "name": "name", "type": "string", "required": true },
{ "name": "health", "type": "int", "default": 100 },
{ "name": "speed", "type": "float", "default": 1.0 },
{ "name": "aggressive", "type": "bool", "default": true }
]
}
},
"enums": {
"Direction": ["North", "South", "East", "West"]
}
}
}
use bevy_map_schema::{Schema, TypeDef, PropertyDef};
// Schemas are typically loaded from map project files
// The editor validates properties against the schema
The schema is embedded in .map.json files and used by:
MIT OR Apache-2.0