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)]
|
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
|
||||||
pub struct Entity {
|
pub struct Entity {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
#[serde(alias = "entityType")]
|
|
||||||
pub entity_type: String,
|
pub entity_type: String,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub observations: Vec<String>,
|
pub observations: Vec<String>,
|
||||||
@@ -34,7 +33,6 @@ pub struct Entity {
|
|||||||
pub struct Relation {
|
pub struct Relation {
|
||||||
pub from: String,
|
pub from: String,
|
||||||
pub to: String,
|
pub to: String,
|
||||||
#[serde(alias = "relationType")]
|
|
||||||
pub relation_type: String,
|
pub relation_type: String,
|
||||||
#[serde(default = "default_namespace")]
|
#[serde(default = "default_namespace")]
|
||||||
pub namespace: String,
|
pub namespace: String,
|
||||||
@@ -50,7 +48,6 @@ pub struct KnowledgeGraph {
|
|||||||
pub struct AcceptanceCriteria {
|
pub struct AcceptanceCriteria {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
#[serde(alias = "is_met")]
|
|
||||||
pub is_met: bool,
|
pub is_met: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,19 +57,14 @@ pub struct Task {
|
|||||||
pub title: String,
|
pub title: String,
|
||||||
pub status: String,
|
pub status: String,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
#[serde(alias = "created_at")]
|
|
||||||
pub created_at: u64,
|
pub created_at: u64,
|
||||||
#[serde(alias = "updated_at")]
|
|
||||||
pub updated_at: u64,
|
pub updated_at: u64,
|
||||||
#[serde(alias = "git_branch")]
|
|
||||||
pub git_branch: Option<String>,
|
pub git_branch: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
#[serde(alias = "parent_id")]
|
|
||||||
pub parent_id: Option<String>,
|
pub parent_id: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub dependencies: Vec<String>,
|
pub dependencies: Vec<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
#[serde(alias = "acceptance_criteria")]
|
|
||||||
pub acceptance_criteria: Vec<AcceptanceCriteria>,
|
pub acceptance_criteria: Vec<AcceptanceCriteria>,
|
||||||
}
|
}
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ pub struct CreateRelationsTool {
|
|||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||||
pub struct ObservationInput {
|
pub struct ObservationInput {
|
||||||
#[serde(alias = "entityName")]
|
|
||||||
pub entity_name: String,
|
pub entity_name: String,
|
||||||
pub contents: Vec<String>,
|
pub contents: Vec<String>,
|
||||||
}
|
}
|
||||||
@@ -33,13 +32,11 @@ pub struct AddObservationsTool {
|
|||||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||||
pub struct DeleteEntitiesTool {
|
pub struct DeleteEntitiesTool {
|
||||||
/// Array of entity names to delete.
|
/// Array of entity names to delete.
|
||||||
#[serde(alias = "entityNames")]
|
|
||||||
pub entity_names: Vec<String>,
|
pub entity_names: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||||
pub struct DeleteObservationInput {
|
pub struct DeleteObservationInput {
|
||||||
#[serde(alias = "entityName")]
|
|
||||||
pub entity_name: String,
|
pub entity_name: String,
|
||||||
pub observations: Vec<String>,
|
pub observations: Vec<String>,
|
||||||
}
|
}
|
||||||
@@ -85,7 +82,6 @@ pub struct OpenNodesTool {
|
|||||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||||
pub struct LogCodeChangeTool {
|
pub struct LogCodeChangeTool {
|
||||||
/// The path of the file that was changed.
|
/// The path of the file that was changed.
|
||||||
#[serde(alias = "filePath")]
|
|
||||||
pub file_path: String,
|
pub file_path: String,
|
||||||
/// A description of the change.
|
/// A description of the change.
|
||||||
pub description: String,
|
pub description: String,
|
||||||
@@ -134,7 +130,6 @@ pub struct ClearStickyNotesTool {}
|
|||||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||||
pub struct CondenseEntityTool {
|
pub struct CondenseEntityTool {
|
||||||
/// The name of the entity to condense.
|
/// The name of the entity to condense.
|
||||||
#[serde(alias = "entityName")]
|
|
||||||
pub entity_name: String,
|
pub entity_name: String,
|
||||||
/// The condensed observations that will replace the existing ones.
|
/// The condensed observations that will replace the existing ones.
|
||||||
pub summarized_observations: Vec<String>,
|
pub summarized_observations: Vec<String>,
|
||||||
@@ -230,10 +225,8 @@ pub struct QueryDecisionsTool {
|
|||||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||||
pub struct MergeEntitiesTool {
|
pub struct MergeEntitiesTool {
|
||||||
/// The name of the entity to merge from (will be deleted).
|
/// The name of the entity to merge from (will be deleted).
|
||||||
#[serde(alias = "sourceEntity")]
|
|
||||||
pub source_entity: String,
|
pub source_entity: String,
|
||||||
/// The name of the entity to merge into.
|
/// The name of the entity to merge into.
|
||||||
#[serde(alias = "targetEntity")]
|
|
||||||
pub target_entity: String,
|
pub target_entity: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user