mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Make JSON models less strict
This commit is contained in:
parent
e7fe4ac3ec
commit
804bbc93b7
3 changed files with 7 additions and 6 deletions
|
|
@ -6,7 +6,11 @@ use std::collections::HashMap;
|
|||
pub struct RbxInstance {
|
||||
pub name: String,
|
||||
pub class_name: String,
|
||||
|
||||
#[serde(default = "Vec::new")]
|
||||
pub children: Vec<RbxInstance>,
|
||||
|
||||
#[serde(default = "HashMap::new")]
|
||||
pub properties: HashMap<String, RbxValue>,
|
||||
|
||||
/// The route that this instance was generated from, if there was one.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue