diff --git a/README.md b/README.md index 9850343..0f2df54 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Here's an example for an app that stores a [jwt](https://jwt.io/) in `localStora ```json { + "mainModule": "Main", "flags": { "properties": { "currentJwt": { diff --git a/examples/jwt_schema.json b/examples/jwt_schema.json index e4355a1..e4e4e5a 100644 --- a/examples/jwt_schema.json +++ b/examples/jwt_schema.json @@ -1,4 +1,5 @@ { + "mainModule": "Main", "flags": { "properties": { "currentJwt": { diff --git a/src/schema.rs b/src/schema.rs index 9799ae8..127a5d0 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -6,9 +6,11 @@ use std::collections::BTreeMap; use std::path::Path; #[derive(Debug, Deserialize)] +#[serde(rename_all = "camelCase")] pub struct Schema { #[serde(default)] pub definitions: BTreeMap, + pub main_module: String, pub flags: Option, } diff --git a/tests/schema.json b/tests/schema.json index 32b62b5..c8087f8 100644 --- a/tests/schema.json +++ b/tests/schema.json @@ -1,4 +1,5 @@ { + "mainModule": "Foo.Bar.Main", "flags": { "properties": { "currentTimeMillis": {