This is the cl-jschema Reference Manual, version 1.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 04:07:28 2024 GMT+0.
cl-jschema/cl-jschema.asd
cl-jschema/src/package.lisp
cl-jschema/src/utils.lisp
cl-jschema/src/types.lisp
cl-jschema/src/keywords.lisp
cl-jschema/src/json-schema.lisp
cl-jschema/src/registry.lisp
cl-jschema/src/parse.lisp
cl-jschema/src/validate.lisp
The main system appears first, followed by any subsystem dependency.
cl-jschema
Common Lisp implementation of JSON Schema
Mauro D’Agostino
MIT
1.1.0
com.inuoe.jzon
(system).
alexandria
(system).
cl-ppcre
(system).
puri
(system).
src
(module).
Modules are listed depth-first from the system components tree.
cl-jschema/src
cl-jschema
(system).
package.lisp
(file).
utils.lisp
(file).
types.lisp
(file).
keywords.lisp
(file).
json-schema.lisp
(file).
registry.lisp
(file).
parse.lisp
(file).
validate.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-jschema/cl-jschema.asd
cl-jschema/src/package.lisp
cl-jschema/src/utils.lisp
cl-jschema/src/types.lisp
cl-jschema/src/keywords.lisp
cl-jschema/src/json-schema.lisp
cl-jschema/src/registry.lisp
cl-jschema/src/parse.lisp
cl-jschema/src/validate.lisp
cl-jschema/src/utils.lisp
src
(module).
*json-pointer-escape-map*
(special variable).
*tracked-json-pointer*
(special variable).
call-with-tracked-json-pointer
(function).
json-equal
(method).
json-equal
(method).
json-equal
(method).
json-equal
(method).
json-false-p
(function).
json-null-p
(function).
json-true-p
(function).
just-once
(function).
maparray
(function).
some-checking-all
(function).
tracked-json-pointer
(function).
unescape-json-pointer
(function).
with-tracked-json-pointer
(macro).
cl-jschema/src/types.lisp
src
(module).
anchor-like
(type).
anchor-like-p
(function).
array-of-hash-tables
(type).
array-of-hash-tables-p
(function).
array-of-schema-likes-p
(function).
array-of-strings
(type).
array-of-strings-p
(function).
array-of-type-p
(function).
hash-table-of-array-of-strings
(type).
hash-table-of-array-of-strings-p
(function).
hash-table-of-schema-likes
(type).
hash-table-of-schema-likes-p
(function).
hash-table-of-type-p
(function).
integer-like
(type).
integer-like-p
(function).
json-boolean
(type).
json-false
(type).
json-false-schema
(type).
json-false-schema-p
(function).
json-null
(type).
json-true
(type).
json-true-schema
(type).
json-true-schema-p
(function).
non-empty-array
(type).
non-empty-array-of-schema-likes
(type).
non-empty-array-p
(function).
non-negative-number
(type).
non-negative-number-p
(function).
positive-number
(type).
positive-number-p
(function).
regex
(type).
schema-like
(type).
string-or-array-of-strings
(type).
uri-reference
(type).
uri-reference-p
(function).
uri-reference-without-fragment
(type).
uri-reference-without-fragment-p
(function).
cl-jschema/src/keywords.lisp
src
(module).
*annotation-keywords*
(special variable).
*conditional-keywords*
(special variable).
*keyword-specs*
(special variable).
*logical-keywords*
(special variable).
*type-error-format-strings*
(special variable).
*type-keywords*
(special variable).
*type-specs*
(special variable).
*validation-error-messages*
(special variable).
copy-type-spec
(function).
keyword-type
(function).
keyword-validation-format-string
(function).
make-type-spec
(function).
type-error-format-string
(function).
type-for-keyword
(function).
type-spec
(function).
type-spec
(structure).
type-spec-keywords
(reader).
(setf type-spec-keywords)
(writer).
type-spec-lisp-type
(reader).
(setf type-spec-lisp-type)
(writer).
type-spec-name
(reader).
(setf type-spec-name)
(writer).
type-spec-p
(function).
cl-jschema/src/json-schema.lisp
src
(module).
initialize-instance
(method).
initialize-instance
(method).
json-schema
(class).
print-object
(method).
print-object
(method).
*$schema*
(special variable).
add-to-type-properites
(function).
additional-properties
(reader method).
anchor
(reader method).
annotations
(reader method).
base-uri
(reader method).
condition-schemas
(reader method).
const
(reader method).
const-schema
(class).
contains
(reader method).
defs
(reader method).
enum-schema
(class).
get-inner-schema
(method).
get-schema-from-ref
(method).
get-type-property
(method).
id
(reader method).
items
(reader method).
items
(reader method).
json-array-schema
(class).
json-basic-type-schema
(class).
json-false-schema
(function).
json-logical-schema
(class).
json-object-schema
(class).
json-schema-spec
(class).
json-schema-type-property
(class).
json-true-schema
(function).
json-type-schema
(class).
key
(reader method).
logical-schemas
(reader method).
max-contains
(reader method).
metadata
(reader method).
min-contains
(reader method).
operator
(reader method).
ref
(reader method).
regex
(reader method).
regex-box
(class).
regex-string
(reader method).
sanitize-schema-object
(method).
schema
(reader method).
schema-spec
(reader method).
schemas
(reader method).
self-registry
(reader method).
type-properties
(reader method).
type-schema
(reader method).
unevaluated-properties
(reader method).
value
(reader method).
cl-jschema/src/registry.lisp
src
(module).
clear-registry
(function).
get-schema
(generic function).
*registry*
(special variable).
register-schema
(function).
cl-jschema/src/parse.lisp
src
(module).
invalid-schema
(condition).
invalid-schema-base-uri
(reader method).
invalid-schema-error-message
(reader method).
invalid-schema-json-pointer
(reader method).
not-implemented
(condition).
parse
(function).
unparsable-json
(condition).
unparsable-json-error
(reader method).
%raise-invalid-schema
(function).
*base-uri*
(special variable).
*self-registry*
(special variable).
check-colliding-type-keywords
(function).
check-keyword-value-type
(function).
check-ref-to-ref
(function).
check-type-value
(function).
make-annotations
(function).
make-condition-schemas
(function).
make-const-schema
(function).
make-enum-schema
(function).
make-json-schema
(function).
make-logical-schemas
(function).
make-metadata
(function).
make-schema-spec
(function).
make-type-schema
(function).
parse-array-of-json-schemas
(function).
parse-keyword-value
(function).
parse-object-of-arrays
(function).
parse-object-of-json-schemas
(function).
parse-pattern-properties
(function).
parse-regex
(function).
raise-invalid-schema
(function).
raise-not-implemented
(function).
raise-unparsable-json
(function).
register-schema-resource
(function).
register-self
(function).
cl-jschema/src/validate.lisp
src
(module).
invalid-json
(condition).
invalid-json-errors
(reader method).
(setf invalid-json-errors)
(writer method).
invalid-json-value
(condition).
invalid-json-value-error-message
(reader method).
invalid-json-value-json-pointer
(reader method).
validate
(method).
*evaluated-properties-map*
(special variable).
*ignore-unresolvable-refs*
(special variable).
*inside-call-with-valid-json-p*
(special variable).
call-with-tracked-property
(function).
call-with-valid-json-p
(function).
check-additional-properties
(function).
check-condition-schemas
(function).
check-contains
(function).
check-items
(function).
check-logical-schema
(method).
check-logical-schemas
(function).
check-schema
(function).
check-schema-ref
(function).
check-schema-spec
(function).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-property
(method).
check-type-schema
(method).
check-type-schema
(method).
check-type-schema
(method).
check-type-schema
(method).
check-type-schema
(method).
check-unevaluated-properties
(function).
copy-evaluated-properties-map
(function).
make-evaluated-properties-map
(function).
raise-invalid-json-value
(function).
raise-unresolvable-ref
(function).
track-all-properties-as-valid
(function).
track-invalid-json-error
(method).
track-invalid-property
(function).
track-valid-property
(function).
tracked-evaluated-properties
(function).
tracked-invalid-properties
(function).
tracked-properties
(function).
tracked-valid-properties
(function).
unresolvable-ref
(condition).
update-evaluated-properties-map-with-map
(function).
with-tracked-property
(macro).
with-valid-json-p
(macro).
Packages are listed by definition order.
cl-jschema
common-lisp
.
clear-registry
(function).
get-schema
(generic function).
invalid-json
(condition).
invalid-json-errors
(generic reader).
(setf invalid-json-errors)
(generic writer).
invalid-json-value
(condition).
invalid-json-value-error-message
(generic reader).
invalid-json-value-json-pointer
(generic reader).
invalid-schema
(condition).
invalid-schema-base-uri
(generic reader).
invalid-schema-error-message
(generic reader).
invalid-schema-json-pointer
(generic reader).
json-schema
(class).
not-implemented
(condition).
parse
(function).
unparsable-json
(condition).
unparsable-json-error
(generic reader).
validate
(generic function).
%raise-invalid-schema
(function).
*$schema*
(special variable).
*annotation-keywords*
(special variable).
*base-uri*
(special variable).
*conditional-keywords*
(special variable).
*evaluated-properties-map*
(special variable).
*ignore-unresolvable-refs*
(special variable).
*inside-call-with-valid-json-p*
(special variable).
*json-pointer-escape-map*
(special variable).
*keyword-specs*
(special variable).
*logical-keywords*
(special variable).
*registry*
(special variable).
*self-registry*
(special variable).
*tracked-json-pointer*
(special variable).
*type-error-format-strings*
(special variable).
*type-keywords*
(special variable).
*type-specs*
(special variable).
*validation-error-messages*
(special variable).
add-to-type-properites
(function).
additional-properties
(generic reader).
anchor
(generic reader).
anchor-like
(type).
anchor-like-p
(function).
annotations
(generic reader).
array-of-hash-tables
(type).
array-of-hash-tables-p
(function).
array-of-schema-likes-p
(function).
array-of-strings
(type).
array-of-strings-p
(function).
array-of-type-p
(function).
base-uri
(generic reader).
call-with-tracked-json-pointer
(function).
call-with-tracked-property
(function).
call-with-valid-json-p
(function).
check-additional-properties
(function).
check-colliding-type-keywords
(function).
check-condition-schemas
(function).
check-contains
(function).
check-items
(function).
check-keyword-value-type
(function).
check-logical-schema
(generic function).
check-logical-schemas
(function).
check-ref-to-ref
(function).
check-schema
(function).
check-schema-ref
(function).
check-schema-spec
(function).
check-type-property
(generic function).
check-type-schema
(generic function).
check-type-value
(function).
check-unevaluated-properties
(function).
condition-schemas
(generic reader).
const
(generic reader).
const-schema
(class).
contains
(generic reader).
copy-evaluated-properties-map
(function).
copy-type-spec
(function).
defs
(generic reader).
enum-schema
(class).
get-inner-schema
(generic function).
get-schema-from-ref
(generic function).
get-type-property
(generic function).
hash-table-of-array-of-strings
(type).
hash-table-of-array-of-strings-p
(function).
hash-table-of-schema-likes
(type).
hash-table-of-schema-likes-p
(function).
hash-table-of-type-p
(function).
id
(generic reader).
integer-like
(type).
integer-like-p
(function).
items
(generic reader).
json-array-schema
(class).
json-basic-type-schema
(class).
json-boolean
(type).
json-equal
(generic function).
json-false
(type).
json-false-p
(function).
json-false-schema
(function).
json-false-schema
(type).
json-false-schema-p
(function).
json-logical-schema
(class).
json-null
(type).
json-null-p
(function).
json-object-schema
(class).
json-schema-spec
(class).
json-schema-type-property
(class).
json-true
(type).
json-true-p
(function).
json-true-schema
(function).
json-true-schema
(type).
json-true-schema-p
(function).
json-type-schema
(class).
just-once
(function).
key
(generic reader).
keyword-type
(function).
keyword-validation-format-string
(function).
logical-schemas
(generic reader).
make-annotations
(function).
make-condition-schemas
(function).
make-const-schema
(function).
make-enum-schema
(function).
make-evaluated-properties-map
(function).
make-json-schema
(function).
make-logical-schemas
(function).
make-metadata
(function).
make-schema-spec
(function).
make-type-schema
(function).
make-type-spec
(function).
maparray
(function).
max-contains
(generic reader).
metadata
(generic reader).
min-contains
(generic reader).
non-empty-array
(type).
non-empty-array-of-schema-likes
(type).
non-empty-array-p
(function).
non-negative-number
(type).
non-negative-number-p
(function).
operator
(generic reader).
parse-array-of-json-schemas
(function).
parse-keyword-value
(function).
parse-object-of-arrays
(function).
parse-object-of-json-schemas
(function).
parse-pattern-properties
(function).
parse-regex
(function).
positive-number
(type).
positive-number-p
(function).
raise-invalid-json-value
(function).
raise-invalid-schema
(function).
raise-not-implemented
(function).
raise-unparsable-json
(function).
raise-unresolvable-ref
(function).
ref
(generic reader).
regex
(generic reader).
regex
(type).
regex-box
(class).
regex-string
(generic reader).
register-schema
(function).
register-schema-resource
(function).
register-self
(function).
sanitize-schema-object
(generic function).
schema
(generic reader).
schema-like
(type).
schema-spec
(generic reader).
schemas
(generic reader).
self-registry
(generic reader).
some-checking-all
(function).
string-or-array-of-strings
(type).
track-all-properties-as-valid
(function).
track-invalid-json-error
(generic function).
track-invalid-property
(function).
track-valid-property
(function).
tracked-evaluated-properties
(function).
tracked-invalid-properties
(function).
tracked-json-pointer
(function).
tracked-properties
(function).
tracked-valid-properties
(function).
type-error-format-string
(function).
type-for-keyword
(function).
type-properties
(generic reader).
type-schema
(generic reader).
type-spec
(function).
type-spec
(structure).
type-spec-keywords
(reader).
(setf type-spec-keywords)
(writer).
type-spec-lisp-type
(reader).
(setf type-spec-lisp-type)
(writer).
type-spec-name
(reader).
(setf type-spec-name)
(writer).
type-spec-p
(function).
unescape-json-pointer
(function).
unevaluated-properties
(generic reader).
unresolvable-ref
(condition).
update-evaluated-properties-map-with-map
(function).
uri-reference
(type).
uri-reference-p
(function).
uri-reference-without-fragment
(type).
uri-reference-without-fragment-p
(function).
value
(generic reader).
with-tracked-json-pointer
(macro).
with-tracked-property
(macro).
with-valid-json-p
(macro).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Clear the registry of parsed JSON Schemas.
Return an instance of ’JSON-SCHEMA.
INPUT can be a value previously parsed by JZON or a value that’s parsable by JZON. The keyargs ALLOW-COMMENTS and ALLOW-TRAILING-COMMA are forwarded to ’JZON:PARSE.
Return NIL or a ’JSON-SCHEMA object.
If URI contains a fragment, then it’s either:
1) A JSON Pointer to an inner schema.
2) A string which should map to an $anchor.
If a fragment is given and we don’t find an inner schema with the fragment, we return NIL.
invalid-json
)) ¶invalid-json
)) ¶invalid-json-value
)) ¶invalid-json-value
)) ¶invalid-schema
)) ¶invalid-schema
)) ¶invalid-schema
)) ¶unparsable-json
)) ¶json-schema
) value &key ignore-unresolvable-refs) ¶Validate VALUE with JSON-SCHEMA.
Return T if valid or throw an ’INVALID-JSON condition if not.
If IGNORE-UNRESOLVABLE-REFS is NIL, then when we don’t find a JSON Schema with $ref, the value being validated will also be considered invalid. Set the keyarg to non-NIL to avoid these errors.
json-array-schema
) &key) ¶json-object-schema
) &key) ¶json-schema
) stream) ¶json-logical-schema
) stream) ¶error
.
(quote nil)
error
.
:error-message
This slot is read-only.
:base-uri
This slot is read-only.
:json-pointer
This slot is read-only.
:json-error
This slot is read-only.
NIL or an instance of ’PURI:URI. Refers to the base
URI of the JSON Schema (see official JSON Schema
documentation).
:base-uri
This slot is read-only.
The JSON Schema dialect (see official JSON Schema documentation).
cl-jschema::*$schema*
:schema
This slot is read-only.
NIL or the value of ’$id’ for this JSON Schema
:id
id
.
This slot is read-only.
NIL or the value of ’$anchor’ for this JSON Schema
:anchor
This slot is read-only.
NIL or the value of ’$ref’ for this JSON Schema
:ref
ref
.
This slot is read-only.
NIL or a hash-table of keys to instances of ’JSON-SCHEMA.
:defs
defs
.
This slot is read-only.
The actual spec to validate values against. Can
be T, NIL or a ’JSON-SCHEMA-SPEC.
:schema-spec
This slot is read-only.
A hash-table of JSON Pointers to ’JSON-SCHEMA
objects. This corresponds to a map of available
JSON Schemas within the root JSON Schema.
:self-registry
This slot is read-only.
The default value for $schema (and currently the only one supported).
List of keywords that are considered just annotations, according to the JSON Schema documentation.
Helper variable for knowing if we’re inside a usage of WITH-VALID-JSON-P.
Map of characters to their respective escaped versions according to the JSON Pointer RFC.
Map of allowed keywords in the JSON Schema to their Lisp type.
Map of URI-reference strings to ’JSON-SCHEMA objects
Map of Lisp types to format strings, which should expect the keyword as a parameter. These are the validation error messages returned when validating a JSON Schema.
The list of allowed JSON Schema keywords for defining a valid value.
Map of allowed "type" values to the Lisp type that the JSON being validated must satisfy and JSON Schema keywords which map to the type.
A map of JSON Schema keywords (well, not all are real keywords, check the actual map) to format strings. These are the validation error messages returned when validating a value with a JSON Schema.
Track PROPERTY as having been evaluated for JSON-OBJECT. Also tracks if PROPERTY is somehow invalid.
Make BODY return T if no errors were triggered or return NIL if a condition of
type ’INVALID-JSON-VALUE was triggered.
Any ’INVALID-JSON-VALUE thrown by BODY is not propagated upwards.
Anchors must start with a letter followed by any number of letters, digits, -, _, :, or .
Check if JSON-OBJECT fulfills the ’additionalProperties’ JSON Schema in OBJECT-SCHEMA.
Check if any of the keywords in TYPE-PROPERTIES refer to different types of JSON values.
Check if VALUE fulfills the conditional JSON Schemas, if there’s an ’if’ JSON Schema.
Check if JSON-ARRAY fulfills the ’contains’ JSON Schema in ARRAY-SCHEMA.
The values of ’minContains’ and ’maxContains’ are also respected.
Check if JSON-ARRAY fulfills the ’items’ JSON Schema in ARRAY-SCHEMA.
If ’prefixItems’ was specified, then we only check items not covered by it.
Check if VALUE fulfills KEYWORD’s Lisp type. Return T if so.
Check if JSON-SCHEMA refers to another JSON-SCHEMA using $ref.
This is explicitly disallowed, according to the official JSON Schema documentation.
Check if VALUE fulfills the JSON Schema.
Check if VALUE fulfills the JSON Schema referenced by $ref, if any.
Check if VALUE fulfills the actual JSON Schema spec.
Check if the value for ’type’ is allowed.
Check if JSON-OBJECT fulfills the ’unevaluatedProperties’ JSON Schema in OBJECT-SCHEMA.
Return T if all of the values in HASH-TABLE are of type TYPE.
Is VALUE a JSON false value as parsed by JZON.
Is VALUE a JSON null value as parsed by JZON.
Is VALUE a JSON true value as parsed by JZON.
Return T if PREDICATE is non-NIL only once in SEQUENCES.
Return the expected Lisp type for JSON Schema KEYWORD.
Return the format string for invalid values for the JSON Schema KEYWORD.
Validate and parse KEYWORD’s VALUE based on it’s type.
If successful, also remove the KEYWORD from the JSON-OBJECT.
Parse ’patternProperties’. In this case, the keywords are regexs and the values of JSON Schemas.
Raise an ’INVALID-JSON-VALUE condition.
Also create an restart named ’CONTINUE-VALIDATING.
Raise an ’UNRESOLVABLE-REF condition.
Also create an restart named ’CONTINUE-VALIDATING.
Store JSON-SCHEMA in the registry with id ID.
Register JSON-SCHEMA as a Schema Resource by resolving $id against the base URI.
Register the current JSON Pointer in the self registry.
Additionally register $anchor or $defs.
Return T if PREDICATE is non-NIL at least once in SEQUENCES, but without short circuiting.
Return the format string for invalid values for the Lisp TYPE.
Return the Lisp type for JSON Schema KEYWORD.
Return the TYPE-SPEC for JSON Schema keyword TYPE.
name
.
Return the unescaped JSON Pointer of JSON-POINTER.
json-object-schema
)) ¶NIL or an instance of a ’JSON-SCHEMA.
Refers to the value of the JSON Schema
keyword ’additionalProperties’, if any.
json-schema
)) ¶NIL or the value of ’$anchor’ for this JSON Schema
json-schema-spec
)) ¶NIL or A hash-table of JSON Schema keywords
mapped to values as parsed by JZON. These
keywords are described as merely for annotation
in the JSON Schema documentation.
json-schema
)) ¶NIL or an instance of ’PURI:URI. Refers to the base
URI of the JSON Schema (see official JSON Schema
documentation).
json-logical-schema
) value) ¶Check if VALUE fulfills LOGICAL-SCHEMA.
(eql :|uniqueitems|)
) unique-items value) ¶Check VALUE by ’uniqueItems’, if UNIQUE-ITEMS is ’true’
(eql :|maxitems|)
) max-items value) ¶Check VALUE by ’maxItems’ for MAX-ITEMS.
(eql :|minitems|)
) min-items value) ¶Check VALUE by ’minItems’ for MIN-ITEMS.
(eql :|prefixitems|)
) prefix-items value) ¶Check VALUE by ’prefixItems’ for JSON Schemas in PREFIX-ITEMS.
(eql :|maxproperties|)
) max-properties value) ¶Check VALUE by ’maxProperties’ for MAX-PROPERTIES.
(eql :|minproperties|)
) min-properties value) ¶Check VALUE by ’minProperties’ for MIN-PROPERTIES.
(eql :|dependentschemas|)
) dependent-schemas value) ¶Check VALUE by ’dependentSchemas’ for JSON Schemas in DEPENDENT-SCHEMAS.
(eql :|dependentrequired|)
) dependent-required value) ¶Check VALUE by ’dependentRequired’ for DEPENDENT-REQUIRED.
(eql :|required|)
) required value) ¶Check VALUE by ’required’ for keys in REQUIRED.
(eql :|patternproperties|)
) pattern-properties value) ¶Check VALUE by ’patternProperties’ for regexs and JSON Schemas in PATTERN-PROPERTIES.
(eql :|propertynames|)
) property-names value) ¶Check VALUE by ’propertyNames’ for JSON Schemas in PROPERTY-NAMES.
(eql :|properties|)
) properties value) ¶Check VALUE by ’properties’ for JSON Schemas in PROPERTIES.
(eql :|exclusivemaximum|)
) exclusive-maximum value) ¶Check VALUE by ’exclusiveMaximum’ by EXCLUSIVE-MAXIMUM.
(eql :|maximum|)
) maximum value) ¶Check VALUE by ’maximum’ by MAXIMUM.
(eql :|exclusiveminimum|)
) exclusive-minimum value) ¶Check VALUE by ’exclusiveMinimum’ by EXCLUSIVE-MINIMUM.
(eql :|minimum|)
) minimum value) ¶Check VALUE by ’minimum’ by MINIMUM.
(eql :|multipleof|)
) multiple-of value) ¶Check VALUE by ’multipleOf’ for MULTIPLE-OF.
(eql :|contentencoding|)
) content-encoding value) ¶[NOT IMPLEMENTED] Check VALUE by ’contentEncoding’ for CONTENT-ENCODING.
(eql :|contentmediatype|)
) content-media-type value) ¶[NOT IMPLEMENTED] Check VALUE by ’contentMediaType’ for CONTENT-MEDIA-TYPE.
(eql :|format|)
) format value) ¶[NOT IMPLEMENTED] Check VALUE by ’format’ for FORMAT.
(eql :|pattern|)
) pattern value) ¶Check VALUE by ’pattern’ for PATTERN.
(eql :|maxlength|)
) max-length value) ¶Check VALUE by ’maxLength’ for MAX-LENGTH.
(eql :|minlength|)
) min-length value) ¶Check VALUE by ’minLength’ for MIN-LENGTH.
(eql :|type|)
) type value) ¶Check VALUE by ’type’ for TYPE.
json-array-schema
) value) ¶Check if VALUE fulfills the additional array-type only validations.
json-object-schema
) value) ¶Check if VALUE fulfills the additional object-type only validations.
json-type-schema
) value) ¶Check if VALUE fulfills TYPE-SCHEMA by validating VALUE against all of the TYPE-SCHEMA properties.
enum-schema
) value) ¶Check if VALUE is any item in ENUM-SCHEMA.
const-schema
) value) ¶Check if VALUE is the item from CONST-SCHEMA.
json-schema-spec
)) ¶NIL or a hash-table of JSON Schema keywords
mapped to instances of ’JSON-SCHEMA. For
’If-Then-Else’ validation.
const-schema
)) ¶The only valid JSON value.
json-array-schema
)) ¶NIL or an instance of a ’JSON-SCHEMA. Refers to the
value of the JSON Schema keyword ’contains’, if
specified.
json-schema
)) ¶NIL or a hash-table of keys to instances of ’JSON-SCHEMA.
defs
.
json-schema
) json-pointer) ¶json-schema
)) ¶Return a ’JSON-SCHEMA by resolving $ref from JSON-SCHEMA. Can return NIL.
json-type-schema
) keyword) ¶json-schema
)) ¶NIL or the value of ’$id’ for this JSON Schema
id
.
json-array-schema
)) ¶An instance of a ’JSON-SCHEMA. Refers to the value of the JSON Schema keyword ’items’.
enum-schema
)) ¶The list of valid JSON values.
json-schema-type-property
)) ¶The original keyword from the JSON Schema.
key
.
json-schema-spec
)) ¶A list of instances of ’JSON-LOGICAL-SCHEMA.
For validating logical operators.
json-array-schema
)) ¶NIL or an integer. Refers to the value of the
JSON Schema keyword ’maxContains’, if
specified.
json-schema-spec
)) ¶NIL or a hash-table of keys to values as parsed by
JZON. Here goes anything that’s not part of the JSON
Schema spec.
json-array-schema
)) ¶NIL or an integer. Refers to the value of the
JSON Schema keyword ’minContains’, if
specified.
json-logical-schema
)) ¶The original keyword from the JSON Schema.
json-schema
)) ¶NIL or the value of ’$ref’ for this JSON Schema
ref
.
json-type-schema
) input-spec) ¶Remove keywords from the type-properties and store them in the object’s slots, based on the INPUT-SPEC.
json-schema
)) ¶The JSON Schema dialect (see official JSON Schema documentation).
json-schema
)) ¶The actual spec to validate values against. Can
be T, NIL or a ’JSON-SCHEMA-SPEC.
json-logical-schema
)) ¶A list of instances of ’JSON-SCHEMA.
json-schema
)) ¶A hash-table of JSON Pointers to ’JSON-SCHEMA
objects. This corresponds to a map of available
JSON Schemas within the root JSON Schema.
invalid-json
) error) ¶json-type-schema
)) ¶A hash-table mapping JSON Schema keywords
(converted to CL keywords) to instances of
’JSON-SCHEMA-TYPE-PROPERTY.
json-schema-spec
)) ¶NIL or an instance of type ’JSON-TYPE-SCHEMA,
’ENUM-SCHEMA or ’CONST-SCHEMA. For validating
incoming values.
json-object-schema
)) ¶NIL or an instance of a ’JSON-SCHEMA.
Refers to the value of the JSON Schema
keyword ’unevaluatedProperties’, if any.
json-schema-type-property
)) ¶The parsed JSON value from the JSON Schema.
A class to represent a const JSON Schema.
A class to represent an enum JSON Schema.
A class to represent a JSON Schema for validating a JSON array.
An instance of a ’JSON-SCHEMA. Refers to the value of the JSON Schema keyword ’items’.
(cl-jschema::json-true-schema)
This slot is read-only.
NIL or an instance of a ’JSON-SCHEMA. Refers to the
value of the JSON Schema keyword ’contains’, if
specified.
This slot is read-only.
NIL or an integer. Refers to the value of the
JSON Schema keyword ’minContains’, if
specified.
This slot is read-only.
NIL or an integer. Refers to the value of the
JSON Schema keyword ’maxContains’, if
specified.
This slot is read-only.
A class to represent a JSON Schema for validating ’basic’ values (i.e. not JSON objects nor arrays).
A class to represent a combination of JSON Schemas with a logical operator.
The original keyword from the JSON Schema.
:operator
This slot is read-only.
A class to represent a JSON Schema for validating a JSON object.
NIL or an instance of a ’JSON-SCHEMA.
Refers to the value of the JSON Schema
keyword ’additionalProperties’, if any.
This slot is read-only.
NIL or an instance of a ’JSON-SCHEMA.
Refers to the value of the JSON Schema
keyword ’unevaluatedProperties’, if any.
This slot is read-only.
NIL or A hash-table of JSON Schema keywords
mapped to values as parsed by JZON. These
keywords are described as merely for annotation
in the JSON Schema documentation.
:annotations
This slot is read-only.
NIL or a hash-table of JSON Schema keywords
mapped to instances of ’JSON-SCHEMA. For
’If-Then-Else’ validation.
:condition-schemas
This slot is read-only.
A list of instances of ’JSON-LOGICAL-SCHEMA.
For validating logical operators.
:logical-schemas
This slot is read-only.
NIL or an instance of type ’JSON-TYPE-SCHEMA,
’ENUM-SCHEMA or ’CONST-SCHEMA. For validating
incoming values.
:type-schema
This slot is read-only.
A class to represent a property of a JSON Schema.
A class to represent the core of a JSON Schema for validating a value.
A hash-table mapping JSON Schema keywords
(converted to CL keywords) to instances of
’JSON-SCHEMA-TYPE-PROPERTY.
:type-properties
This slot is read-only.
A class to encapsulate a regex with it’s scanner.
The original regex from the JSON Schema.
:regex-string
This slot is read-only.
Jump to: | %
(
A B C D F G H I J K L M N O P R S T U V W |
---|
Jump to: | %
(
A B C D F G H I J K L M N O P R S T U V W |
---|
Jump to: | *
A B C D E I J K L M N O R S T U V |
---|
Jump to: | *
A B C D E I J K L M N O R S T U V |
---|
Jump to: | A C E F H I J K M N P R S T U V |
---|
Jump to: | A C E F H I J K M N P R S T U V |
---|