mirror of
https://github.com/BrianHicks/elm-duet.git
synced 2024-10-26 14:10:36 +03:00
capture the main module
This commit is contained in:
parent
07c983542f
commit
6337bfb47c
@ -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": {
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"mainModule": "Main",
|
||||
"flags": {
|
||||
"properties": {
|
||||
"currentJwt": {
|
||||
|
@ -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>,
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"mainModule": "Foo.Bar.Main",
|
||||
"flags": {
|
||||
"properties": {
|
||||
"currentTimeMillis": {
|
||||
|
Loading…
Reference in New Issue
Block a user