Current section

Files

Jump to
jsv lib jsv resolver embedded draft202012 meta core.ex
Raw

lib/jsv/resolver/embedded/draft202012/meta/core.ex

defmodule JSV.Resolver.Embedded.Draft202012.Meta.Core do
@moduledoc false
@spec schema :: map
def schema do
%{
"$defs" => %{
"anchorString" => %{
"pattern" => "^[A-Za-z_][-A-Za-z0-9._]*$",
"type" => "string"
},
"uriReferenceString" => %{"format" => "uri-reference", "type" => "string"},
"uriString" => %{"format" => "uri", "type" => "string"}
},
"$dynamicAnchor" => "meta",
"$id" => "https://json-schema.org/draft/2020-12/meta/core",
"$schema" => "https://json-schema.org/draft/2020-12/schema",
"properties" => %{
"$anchor" => %{"$ref" => "#/$defs/anchorString"},
"$comment" => %{"type" => "string"},
"$defs" => %{
"additionalProperties" => %{"$dynamicRef" => "#meta"},
"type" => "object"
},
"$dynamicAnchor" => %{"$ref" => "#/$defs/anchorString"},
"$dynamicRef" => %{"$ref" => "#/$defs/uriReferenceString"},
"$id" => %{
"$comment" => "Non-empty fragments not allowed.",
"$ref" => "#/$defs/uriReferenceString",
"pattern" => "^[^#]*#?$"
},
"$ref" => %{"$ref" => "#/$defs/uriReferenceString"},
"$schema" => %{"$ref" => "#/$defs/uriString"},
"$vocabulary" => %{
"additionalProperties" => %{"type" => "boolean"},
"propertyNames" => %{"$ref" => "#/$defs/uriString"},
"type" => "object"
}
},
"title" => "Core vocabulary meta-schema",
"type" => ["object", "boolean"]
}
end
end