Skip to content

Commit 31ecd87

Browse files
committed
Update with RuboCop findings
1 parent 91350be commit 31ecd87

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/mcp/tool/output_schema.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def deep_transform_keys(schema, &block)
3939
if key.casecmp?("$ref")
4040
raise ArgumentError, "Invalid JSON Schema: $ref is not allowed in tool output schemas"
4141
end
42+
4243
result[yield(key)] = deep_transform_keys(value, &block)
4344
end
4445
when Array

test/mcp/tool/output_schema_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,18 @@ class OutputSchemaTest < ActiveSupport::TestCase
136136
type: "array",
137137
items: {
138138
properties: { foo: { type: "string" } },
139-
required: [:foo]
140-
}
139+
required: [:foo],
140+
},
141141
})
142142
assert_equal(
143143
{
144144
type: "array",
145145
items: {
146146
properties: { foo: { type: "string" } },
147147
required: ["foo"],
148-
}
148+
},
149149
},
150-
schema.to_h
150+
schema.to_h,
151151
)
152152
end
153153
end

0 commit comments

Comments
 (0)