Skip to content

Commit

Permalink
fix(common): add missing schema, v0.40.1 (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 committed Mar 4, 2024
1 parent 0c57746 commit 3e11ae3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle-common"
version = "0.40.0"
version = "0.40.1"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down
7 changes: 7 additions & 0 deletions common/src/templates.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
use std::collections::HashMap;

use serde::{Deserialize, Serialize};

/// Schema used in `examples/templates.toml` and services that parses it
#[derive(Debug, Serialize, Deserialize)]
pub struct TemplatesSchema {
templates: HashMap<String, TemplateDefinition>,
}

#[derive(Debug, Default, Serialize, Deserialize)]
pub struct TemplateDefinition {
/// Title of the template
Expand Down

0 comments on commit 3e11ae3

Please sign in to comment.