We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab2706 commit 5cd3ed7Copy full SHA for 5cd3ed7
lib/mcp/tool/input_schema.rb
@@ -50,7 +50,7 @@ def validate_schema!
50
accept_uri: false,
51
accept_file: ->(path) { path.to_s.start_with?(Gem.loaded_specs["json-schema"].full_gem_path) },
52
)
53
- metaschema = JSON::Validator.validator_for_name("draft4").metaschema
+ metaschema = "file://#{JSON::Validator.validator_for_name("draft4").metaschema}"
54
errors = JSON::Validator.fully_validate(metaschema, schema, schema_reader: schema_reader)
55
if errors.any?
56
raise ArgumentError, "Invalid JSON Schema: #{errors.join(", ")}"
0 commit comments