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)]
|
||||
|
||||
@@ -17,7 +17,6 @@ pub struct CreateRelationsTool {
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||
pub struct ObservationInput {
|
||||
#[serde(alias = "entityName")]
|
||||
pub entity_name: String,
|
||||
pub contents: Vec<String>,
|
||||
}
|
||||
@@ -33,13 +32,11 @@ pub struct AddObservationsTool {
|
||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||
pub struct DeleteEntitiesTool {
|
||||
/// Array of entity names to delete.
|
||||
#[serde(alias = "entityNames")]
|
||||
pub entity_names: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||
pub struct DeleteObservationInput {
|
||||
#[serde(alias = "entityName")]
|
||||
pub entity_name: String,
|
||||
pub observations: Vec<String>,
|
||||
}
|
||||
@@ -85,7 +82,6 @@ pub struct OpenNodesTool {
|
||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||
pub struct LogCodeChangeTool {
|
||||
/// The path of the file that was changed.
|
||||
#[serde(alias = "filePath")]
|
||||
pub file_path: String,
|
||||
/// A description of the change.
|
||||
pub description: String,
|
||||
@@ -134,7 +130,6 @@ pub struct ClearStickyNotesTool {}
|
||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||
pub struct CondenseEntityTool {
|
||||
/// The name of the entity to condense.
|
||||
#[serde(alias = "entityName")]
|
||||
pub entity_name: String,
|
||||
/// The condensed observations that will replace the existing ones.
|
||||
pub summarized_observations: Vec<String>,
|
||||
@@ -230,10 +225,8 @@ pub struct QueryDecisionsTool {
|
||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||
pub struct MergeEntitiesTool {
|
||||
/// The name of the entity to merge from (will be deleted).
|
||||
#[serde(alias = "sourceEntity")]
|
||||
pub source_entity: String,
|
||||
/// The name of the entity to merge into.
|
||||
#[serde(alias = "targetEntity")]
|
||||
pub target_entity: String,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user