capture the main module

This commit is contained in:
Brian Hicks 2024-04-10 05:56:39 -05:00
parent 07c983542f
commit 6337bfb47c
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50
4 changed files with 5 additions and 0 deletions

View File

@ -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": {

View File

@ -1,4 +1,5 @@
{
"mainModule": "Main",
"flags": {
"properties": {
"currentJwt": {

View File

@ -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<String, jtd::SerdeSchema>,
pub main_module: String,
pub flags: Option<jtd::SerdeSchema>,
}

View File

@ -1,4 +1,5 @@
{
"mainModule": "Foo.Bar.Main",
"flags": {
"properties": {
"currentTimeMillis": {