Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/santhosh-tekuri/jsonschema
/ functions
Functions
377 in github.com/santhosh-tekuri/jsonschema
⨍
Functions
377
◇
Types & classes
115
↓ 2 callers
Method
add
(url url, doc any)
loader.go:134
↓ 2 callers
Method
collectAnchors
(sch any, schPtr jsonPointer, res *resource)
root.go:78
↓ 2 callers
Function
discriminatorVocab
Vocab --
example_vocab_discriminator_test.go:44
↓ 2 callers
Method
display
(sb *strings.Builder, verbose bool, indent int, absKwLoc string, p *message.Printer)
output.go:46
↓ 2 callers
Function
duplicates
(arr []any)
util.go:331
↓ 2 callers
Method
enqueueAdditional
(pname string)
objcompiler.go:416
↓ 2 callers
Method
format
(tok string)
util.go:246
↓ 2 callers
Method
instanceLocation
error helpers --
validator.go:816
↓ 2 callers
Method
join
(ref string)
util.go:27
↓ 2 callers
Method
kwLoc
()
validator.go:896
↓ 2 callers
Function
localizedError
(err error, p *message.Printer)
kind/kind.go:646
↓ 2 callers
Function
minInt
--
util.go:256
↓ 2 callers
Function
newHTTPURLLoader
(insecure bool)
example_http_test.go:31
↓ 2 callers
Function
openMeta
(url string)
loader.go:81
↓ 2 callers
Method
orLoad
(u url)
roots.go:30
↓ 2 callers
Method
output
(flatten, inRef bool, schemaURL, kwLoc string, p *message.Printer)
output.go:168
↓ 2 callers
Function
quote
quote returns single-quoted string. used for embedding quoted strings in json.
util.go:279
↓ 2 callers
Method
resolveFragment
(frag fragment)
root.go:52
↓ 2 callers
Method
resolveFragmentIn
(frag fragment, res *resource)
root.go:34
↓ 2 callers
Method
skip
()
output.go:38
↓ 2 callers
Function
testOuputSuite
(t *testing.T, suite string)
output_test.go:137
↓ 2 callers
Function
testOutputDir
(t *testing.T, suite, dir string, draft *jsonschema.Draft)
output_test.go:15
↓ 2 callers
Function
testSuite
(t *testing.T, suite string)
suite_test.go:132
↓ 2 callers
Function
unescape
(tok string)
util.go:61
↓ 2 callers
Method
validate
(r *root, v any, ptr jsonPointer)
roots.go:237
↓ 2 callers
Function
validateDuration
see https://datatracker.ietf.org/doc/html/rfc3339#appendix-A
format.go:143
↓ 2 callers
Function
validateIPV6
(v any)
format.go:236
↓ 1 callers
Method
AddError
AddError reports validation-error of given kind.
vocab.go:80
↓ 1 callers
Method
Duplicates
(arr []any)
vocab.go:105
↓ 1 callers
Method
Enqueue
(schPath []string)
vocab.go:9
↓ 1 callers
Method
EvaluatedProp
EvaluatedProp marks given property of current object as evaluated.
vocab.go:70
↓ 1 callers
Method
FlagOutput
The `Flag` output format, merely the boolean result.
output.go:120
↓ 1 callers
Method
LocalizedBasicOutput
(p *message.Printer)
output.go:153
↓ 1 callers
Method
LocalizedDetailedOutput
(p *message.Printer)
output.go:163
↓ 1 callers
Method
LocalizedError
(p *message.Printer)
output.go:87
↓ 1 callers
Method
LocalizedError
(p *message.Printer)
util.go:462
↓ 1 callers
Method
LocalizedGoString
(p *message.Printer)
output.go:97
↓ 1 callers
Function
NewCompiler
NewCompiler create Compiler Object.
compiler.go:21
↓ 1 callers
Method
RegisterContentEncoding
RegisterContentEncoding registers custom contentEncoding. NOTE: content assertions are disabled by default. see [Compiler.AssertContent].
compiler.go:85
↓ 1 callers
Method
RegisterContentMediaType
RegisterContentMediaType registers custom contentMediaType. NOTE: content assertions are disabled by default. see [Compiler.AssertContent].
compiler.go:93
↓ 1 callers
Method
RegisterFormat
RegisterFormat registers custom format. NOTE: - "regex" format can not be overridden - format assertions are disabled for draft >= 2019-09 see [Compi
compiler.go:75
↓ 1 callers
Method
String
String returns the specification url.
draft.go:22
↓ 1 callers
Method
UseRegexpEngine
UseRegexpEngine changes the regexp-engine used. By default it uses regexp package from go standard library. NOTE: must be called before compiling any
compiler.go:146
↓ 1 callers
Method
_collectResources
(r *root, sch any, base url, schPtr jsonPointer, fallback dialect)
roots.go:81
↓ 1 callers
Method
addRoot
(u url, doc any)
roots.go:41
↓ 1 callers
Method
addSubschema
(r *root, ptr jsonPointer)
roots.go:216
↓ 1 callers
Method
arrValidate
(arr []any)
validator.go:324
↓ 1 callers
Method
assertFormat
(draftVersion int)
objcompiler.go:432
↓ 1 callers
Method
at
(i int)
compiler.go:289
↓ 1 callers
Method
checkCycle
()
validator.go:882
↓ 1 callers
Method
clone
()
root.go:137
↓ 1 callers
Method
compile
(s *Schema)
objcompiler.go:19
↓ 1 callers
Method
compileDraft2019
(s *Schema)
objcompiler.go:265
↓ 1 callers
Method
compileDraft2020
(s *Schema)
objcompiler.go:317
↓ 1 callers
Method
compileDraft4
(s *Schema)
objcompiler.go:86
↓ 1 callers
Method
compileDraft6
(s *Schema)
objcompiler.go:212
↓ 1 callers
Method
compileDraft7
(s *Schema)
objcompiler.go:225
↓ 1 callers
Method
compileObject
(obj map[string]any, sch *Schema, r *root, q *queue)
compiler.go:264
↓ 1 callers
Method
compileValue
(v any, sch *Schema, r *root, q *queue)
compiler.go:216
↓ 1 callers
Method
concat
(next jsonPointer)
util.go:95
↓ 1 callers
Method
condValidate
()
validator.go:552
↓ 1 callers
Method
doCompile
(up urlPtr)
compiler.go:190
↓ 1 callers
Method
ensureSubschema
(up urlPtr)
roots.go:193
↓ 1 callers
Method
get
(up urlPtr)
compiler.go:297
↓ 1 callers
Method
getDraft
(up urlPtr, doc any, defaultDraft *Draft, cycle map[url]struct{})
loader.go:165
↓ 1 callers
Method
getMetaVocabs
(doc any, draft *Draft, vocabularies map[string]*Vocabulary)
loader.go:196
↓ 1 callers
Method
getVocabs
(url url, doc any, vocabularies map[string]*Vocabulary)
draft.go:181
↓ 1 callers
Function
isInteger
(num any)
util.go:272
↓ 1 callers
Function
isMeta
(url string)
loader.go:103
↓ 1 callers
Method
len
()
compiler.go:293
↓ 1 callers
Function
loadMeta
(url string)
loader.go:115
↓ 1 callers
Method
merge
(other *uneval)
validator.go:939
↓ 1 callers
Function
newEnum
(arr []any)
schema.go:237
↓ 1 callers
Function
newLoader
(mappings map[string]string, insecure bool, cacert string)
cmd/jv/loader.go:17
↓ 1 callers
Function
newSchema
(up urlPtr)
schema.go:252
↓ 1 callers
Function
newTypes
(v any)
schema.go:176
↓ 1 callers
Method
numValidate
(v any)
validator.go:513
↓ 1 callers
Method
objValidate
(obj map[string]any)
validator.go:198
↓ 1 callers
Method
resolve
resolves urlFrag to urlPtr from root. returns nil if it is external.
root.go:58
↓ 1 callers
Method
resolveDynamicAnchor
(name string, fallback *Schema)
validator.go:779
↓ 1 callers
Method
resolveRecursiveAnchor
(fallback *Schema)
validator.go:767
↓ 1 callers
Method
schemaURL
format ---
output.go:17
↓ 1 callers
Function
startsWithWindowsDrive
(s string)
util.go:163
↓ 1 callers
Method
strValidate
(str string)
validator.go:432
↓ 1 callers
Function
testFile
(t *testing.T, suite, fpath string, draft *jsonschema.Draft)
suite_test.go:22
↓ 1 callers
Function
typeFromString
(s string)
schema.go:131
↓ 1 callers
Method
unevalValidate
()
validator.go:633
↓ 1 callers
Function
validateDate
see see https://datatracker.ietf.org/doc/html/rfc3339#section-5.6
format.go:378
↓ 1 callers
Function
validateHostname
see https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names
format.go:255
↓ 1 callers
Function
validateIPV4
(v any)
format.go:212
↓ 1 callers
Function
validateJSONPointer
see https://www.rfc-editor.org/rfc/rfc6901#section-3
format.go:42
↓ 1 callers
Method
validateRefs
()
validator.go:791
↓ 1 callers
Function
validateTime
see https://datatracker.ietf.org/doc/html/rfc3339#section-5.6 NOTE: golang time package does not support leap seconds.
format.go:389
↓ 1 callers
Method
validateValue
(sch *Schema, v any, vpath []string)
validator.go:705
Method
AddErrors
AddErrors reports validation-errors of given kind.
vocab.go:85
Method
Equals
(v1, v2 any)
vocab.go:97
Method
Error
()
roots.go:254
Method
Error
()
roots.go:264
Method
Error
()
roots.go:274
Method
Error
()
roots.go:284
← previous
next →
101–200 of 377, ranked by callers