Skip to content

Commit

Permalink
rm Schema::Ref hax to find supported metaschemas, replaced by schema …
Browse files Browse the repository at this point in the history
…registry
  • Loading branch information
notEthan committed Feb 11, 2021
1 parent c4b5495 commit 1ce1ecb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/jsi/schema/ref.rb
Expand Up @@ -76,13 +76,6 @@ def deref_schema
end
end

unless schema_resource_root
schema_resource_root = JSI::Schema.supported_metaschemas.detect do |metaschema|
# HAX until the schema registry
%w(id $id).any? { |k| metaschema.key?(k) && Addressable::URI.parse(metaschema[k]) == ref_uri_nofrag }
end
end

check_schema_resource_root.call

if schema_resource_root.is_a?(Schema)
Expand Down

0 comments on commit 1ce1ecb

Please sign in to comment.