fix(mcp): completely eradicate camelCase backward compatibility by removing all serde aliases
This commit is contained in:
1 parent
a24ef598a2
commit
e84c101515
2 files changed
-15
No files matched your search
@@ -21,7 +21,6 @@ pub fn default_namespace() -> String {
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
|
||||
pub struct Entity {
|
||||
pub name: String,
|
||||
#[serde(alias = "entityType")]
|
||||
pub entity_type: String,
|
||||
#[serde(default)]
|
||||
pub observations: Vec<String>,
|
||||
@@ -34,7 +33,6 @@ pub struct Entity {
|
||||
pub struct Relation {
|
||||
pub from: String,
|
||||
pub to: String,
|
||||
#[serde(alias = "relationType")]
|
||||
pub relation_type: String,
|
||||
#[serde(default = "default_namespace")]
|
||||
pub namespace: String,
|
||||
@@ -50,7 +48,6 @@ pub struct KnowledgeGraph {
|
||||
pub struct AcceptanceCriteria {
|
||||
pub id: String,
|
||||
pub description: String,
|
||||
#[serde(alias = "is_met")]
|
||||
pub is_met: bool,
|
||||
}
|
||||
|
||||
@@ -60,19 +57,14 @@ pub struct Task {
|
||||
pub title: String,
|
||||
pub status: String,
|
||||
pub description: String,
|
||||
#[serde(alias = "created_at")]
|
||||
pub created_at: u64,
|
||||
#[serde(alias = "updated_at")]
|
||||
pub updated_at: u64,
|
||||
#[serde(alias = "git_branch")]
|
||||
pub git_branch: Option<String>,
|
||||
#[serde(default)]
|
||||
#[serde(alias = "parent_id")]
|
||||
pub parent_id: Option<String>,
|
||||
#[serde(default)]
|
||||
pub dependencies: Vec<String>,
|
||||
#[serde(default)]
|
||||
#[serde(alias = "acceptance_criteria")]
|
||||
pub acceptance_criteria: Vec<AcceptanceCriteria>,
|
||||
}
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||
|
||||
Reference in new issue
Block a user