mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Support $schema in JSON structures (#974)
This commit is contained in:
parent
5ca1573e2e
commit
d9ab0e7de8
4 changed files with 14 additions and 0 deletions
|
|
@ -61,6 +61,9 @@ pub fn snapshot_json_model(
|
|||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct JsonModel {
|
||||
#[serde(rename = "$schema", skip_serializing_if = "Option::is_none")]
|
||||
schema: Option<String>,
|
||||
|
||||
#[serde(alias = "Name")]
|
||||
name: Option<String>,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue