MCPcopy Create free account

hub / github.com/santhosh-tekuri/jsonschema / functions

Functions377 in github.com/santhosh-tekuri/jsonschema

↓ 81 callersFunctionLocalizableError
-- LocalizableError is an error whose message is localizable.
util.go:449
↓ 38 callersMethodCompile
Compile compiles json-schema at given loc.
compiler.go:178
↓ 28 callersMethodAddResource
AddResource adds schema resource which gets used later in reference resolution. The argument url can be file path or url. Any fragment in url is igno
compiler.go:121
↓ 25 callersMethodaddError
(kind ErrorKind)
validator.go:838
↓ 24 callersMethodString
()
util.go:23
↓ 23 callersFunctionschemaPath
(path string)
position.go:85
↓ 20 callersMethodValidate
Validate validates v against and errors if any are reported to ctx.
vocab.go:43
↓ 20 callersMethodaddErr
(err error)
validator.go:832
↓ 15 callersMethoderror
(kind ErrorKind)
validator.go:820
↓ 15 callersMethodhasVocab
--
objcompiler.go:428
↓ 12 callersMethodenqueueProp
(pname string)
objcompiler.go:382
↓ 12 callersFunctioneprintln
(format string, args ...any)
cmd/jv/main.go:220
↓ 12 callersMethodvalidateVal
(sch *Schema, v any, vtok string)
validator.go:682
↓ 11 callersFunctionquote
--
kind/kind.go:616
↓ 11 callersMethodvalidateSelf
validation helpers --
validator.go:657
↓ 8 callersMethodintVal
(pname string)
objcompiler.go:495
↓ 8 callersFunctionsplit
(str string)
util.go:140
↓ 7 callersMethodappend
(sch *Schema)
compiler.go:285
↓ 7 callersMethodboolean
(pname string)
objcompiler.go:457
↓ 7 callersFunctionescape
(tok string)
util.go:55
↓ 7 callersMethodstrVal
(pname string)
objcompiler.go:462
↓ 6 callersFunctionUnmarshalJSON
-- UnmarshalJSON unmarshals into [any] without losing number precision using [json.Number].
loader.go:255
↓ 6 callersMethodaddErrors
(errors []*ValidationError, kind ErrorKind)
validator.go:842
↓ 6 callersMethodenqueuePtr
enqueue helpers --
objcompiler.go:348
↓ 6 callersFunctionequals
(v1, v2 any)
util.go:286
↓ 6 callersMethodisEmpty
()
validator.go:952
↓ 6 callersMethodnumVal
(pname string)
objcompiler.go:481
↓ 6 callersMethodresource
(ptr jsonPointer)
root.go:20
↓ 6 callersFunctionstrVal
(obj map[string]any, prop string)
util.go:263
↓ 6 callersMethodstring
(pname string)
objcompiler.go:474
↓ 5 callersMethodAssertContent
AssertContent enables content assertions. Content assertions include keywords: - contentEncoding - contentMediaType - contentSchema Default behavior
compiler.go:65
↓ 5 callersMethodAssertFormat
AssertFormat always enables format assertions. Default Behavior: for draft-07: enabled. for draft/2019-09: disabled unless metaschema says `format` v
compiler.go:53
↓ 5 callersMethodRegisterVocabulary
RegisterVocabulary registers custom vocabulary. NOTE: - vocabularies are disabled for draft >= 2019-09 see [Compiler.AssertVocabs]
compiler.go:102
↓ 5 callersMethodString
()
util.go:250
↓ 5 callersMethodUseLoader
UseLoader overrides the default [URLLoader] used to load schema resources.
compiler.go:137
↓ 5 callersMethodcollectResources
(r *root, sch any, base url, schPtr jsonPointer, fallback dialect)
roots.go:70
↓ 5 callersFunctionencode
avoids escaping /.
util.go:120
↓ 5 callersMethodenqueue
(q *queue, up urlPtr)
compiler.go:153
↓ 5 callersMethodenqueueArr
(pname string)
objcompiler.go:390
↓ 5 callersFunctionjsonPtr
(tokens []string)
output.go:103
↓ 5 callersFunctionsplitFragment
(str string)
util.go:131
↓ 5 callersFunctiontestDir
(t *testing.T, suite, dpath string, draft *jsonschema.Draft)
suite_test.go:105
↓ 4 callersMethodAssertVocabs
AssertVocabs always enables user-defined vocabularies assertions. Default Behavior: for draft-07: enabled. for draft/2019-09: disabled unless metasch
compiler.go:112
↓ 4 callersMethodLocalizedString
(*message.Printer)
validator.go:974
↓ 4 callersMethodcontains
(t jsonType)
schema.go:208
↓ 4 callersMethodconvert
()
util.go:148
↓ 4 callersFunctiondisplay
to be used only for primitive.
kind/kind.go:635
↓ 4 callersMethodgetSchema
(assertVocabs bool, vocabularies map[string]*Vocabulary)
draft.go:266
↓ 4 callersFunctionjoinQuoted
(arr []string, sep string)
kind/kind.go:623
↓ 4 callersFunctionjoinSubschemas
--
draft.go:355
↓ 4 callersFunctionunevalFrom
(v any, sch *Schema, callerNeeds bool)
validator.go:918
↓ 4 callersMethodvalidate
(v any, regexpEngine RegexpEngine, meta *Schema, resources map[jsonPointer]*resource, assertVocabs bool, vocab
validator.go:19
↓ 4 callersMethodvalidate
()
validator.go:70
↓ 3 callersMethodBasicOutput
The `Basic` structure, a flat list of output units.
output.go:149
↓ 3 callersMethodDefaultDraft
DefaultDraft overrides the draft used to compile schemas without `$schema` field. By default, this library uses the latest draft supported. The use
compiler.go:43
↓ 3 callersMethodDetailedOutput
The `Detailed` structure, based on the schema.
output.go:159
↓ 3 callersMethodKeywordPath
()
validator.go:973
↓ 3 callersMethodLoad
Load loads json from given absolute url.
loader.go:20
↓ 3 callersMethodMatchString
MatchString reports whether the string s contains any match of the regular expression.
compiler.go:313
↓ 3 callersMethodString
()
output.go:140
↓ 3 callersMethodactiveVocabs
(assertVocabs bool, vocabularies map[string]*Vocabulary)
draft.go:242
↓ 3 callersMethodadd
(t jsonType)
schema.go:204
↓ 3 callersMethodappend2
(tok1, tok2 string)
util.go:103
↓ 3 callersMethodarrVal
(pname string)
objcompiler.go:515
↓ 3 callersMethodboolVal
value helpers --
objcompiler.go:445
↓ 3 callersMethodchild
(sch *Schema, refKeyword string, vid int)
validator.go:878
↓ 3 callersMethodcollect
(v any, ptr jsonPointer)
position.go:10
↓ 3 callersFunctiondecode
(frag string)
util.go:115
↓ 3 callersFunctiondraftFromURL
(url string)
draft.go:138
↓ 3 callersMethodenqueueMap
(pname string)
objcompiler.go:403
↓ 3 callersMethodenqueueRef
(pname string)
objcompiler.go:353
↓ 3 callersMethodfindMissing
(obj map[string]any, reqd []string)
validator.go:848
↓ 3 callersMethodgetID
(obj map[string]any)
draft.go:165
↓ 3 callersMethodhandleMeta
()
validator.go:740
↓ 3 callersMethodload
(url url)
loader.go:142
↓ 3 callersFunctionloadFile
(path string)
cmd/jv/loader.go:61
↓ 3 callersMethodlookup
(v any)
util.go:221
↓ 3 callersMethodmetaResource
(sch *Schema)
validator.go:728
↓ 3 callersFunctionnewResource
(ptr jsonPointer, id url)
root.go:164
↓ 3 callersFunctionnewRoots
()
roots.go:17
↓ 3 callersMethodobjVal
(pname string)
objcompiler.go:503
↓ 3 callersFunctionparseURL
(s string)
format.go:515
↓ 3 callersFunctionprintJSON
(v any)
cmd/jv/main.go:225
↓ 3 callersMethodrootResource
()
root.go:16
↓ 3 callersFunctiontoStrings
--
objcompiler.go:541
↓ 3 callersFunctiontypeOf
(v any)
schema.go:112
↓ 3 callersFunctionuniqueKeysVocab
Vocab --
example_vocab_uniquekeys_test.go:47
↓ 3 callersFunctionvalidateDateTime
see https://datatracker.ietf.org/doc/html/rfc3339#section-5.6
format.go:492
↓ 3 callersMethodvalidateRef
reference validation --
validator.go:752
↓ 3 callersFunctionwriteHash
(v any, h *maphash.Hash)
util.go:363
↓ 2 callersMethodAdd
Add specified json type. If typ is not valid json type it is ignored.
schema.go:200
↓ 2 callersMethodAddErr
AddErr reports the given err. This is typically used to report the error created by subschema validation. NOTE that err must be of type *ValidationEr
vocab.go:93
↓ 2 callersMethodError
()
util.go:411
↓ 2 callersMethodIsEmpty
()
schema.go:194
↓ 2 callersMethodMustCompile
MustCompile is like [Compile] but panics if compilation fails. It simplifies safe initialization of global variables holding compiled schema.
compiler.go:169
↓ 2 callersMethodString
()
schema.go:226
↓ 2 callersMethodToFile
ToFile is helper method to convert file url to file path.
loader.go:42
↓ 2 callersMethodToStrings
()
schema.go:212
↓ 2 callersFunctionabsolute
(input string)
util.go:170
↓ 2 callersMethodabsoluteKeywordLocation
()
output.go:25
next →1–100 of 377, ranked by callers