fix: correct tests following strict removal of legacy json aliases
This commit is contained in:
1 parent
a9ed5ae9c8
commit
8ff43487bc
5 files changed
+4
-10
No files matched your search
@@ -185,7 +185,6 @@ impl std::fmt::Display for TaskStatus {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, Default)]
|
||||
pub struct Entity {
|
||||
pub name: String,
|
||||
#[serde(alias = "entityType", alias = "type", alias = "category")]
|
||||
pub entity_type: String,
|
||||
#[serde(default)]
|
||||
pub observations: Vec<String>,
|
||||
@@ -207,11 +206,8 @@ pub struct Entity {
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, Default)]
|
||||
pub struct Relation {
|
||||
#[serde(alias = "source", alias = "from_node", alias = "source_node")]
|
||||
pub from: String,
|
||||
#[serde(alias = "target", alias = "to_node", alias = "target_node")]
|
||||
pub to: String,
|
||||
#[serde(alias = "relationType", alias = "type", alias = "relation")]
|
||||
pub relation_type: String,
|
||||
#[serde(default = "default_namespace")]
|
||||
pub namespace: String,
|
||||
@@ -363,7 +359,6 @@ pub struct Adr {
|
||||
pub title: String,
|
||||
pub context: String,
|
||||
pub decision: String,
|
||||
#[serde(alias = "consequences")]
|
||||
pub consequence: String,
|
||||
#[serde(default = "default_adr_status")]
|
||||
pub status: String,
|
||||
|
||||
Reference in new issue
Block a user