Skip to content

Latest commit

 

History

History
91 lines (90 loc) · 3.27 KB

todo.org

File metadata and controls

91 lines (90 loc) · 3.27 KB

Support regex patterns in clj->jsch

Schema expansion

react-jsonschema-form (and potentially other libraries) are not able to follow $refs and require pre-expanded schemas. Therefore, add a feature to allow expansion.

Change order of validation in api-2 so we can use partials

Also, make schema a record

Coercions

Support a map of maps (from, to) lookup

Update documention in README.adoc

Coercions

as per https://ajv.js.org/coercion.html

6. Validation Keywords

[#A] 6.1 Validation Keywords for Any Instance Type

6.1.1 type

6.1.2 enum

6.1.3 const

[#C] 6.2 Validation Keywords for Numeric Instances (number and integer)

6.2.1 multipleOf

6.2.2 maximum

6.2.3 exclusiveMaximum

6.2.4 minimum

6.2.5 exclusiveMinimum

[#B] 6.3 Validation Keywords for Strings

6.3.1 maxLength

6.3.2 minLength

6.3.3 pattern

[#A] 6.4 Validation Keywords for Arrays

6.4.1 items

6.4.2 additionalItems

6.4.3 maxItems

6.4.4 minItems

6.4.5 uniqueItems

6.4.6 contains

[#A] 6.5 Validation Keywords for Objects

6.5.1 maxProperties

6.5.2 minProperties

6.5.3 required

6.5.4 properties

6.5.5 patternProperties

6.5.6 additionalProperties

6.5.7 dependenices

6.5.8 propertyNames

[#C] 6.6 Keywords for Applying Subschemas Conditionally

6.6.1 if

6.6.2 then

6.6.3 else

[#A] 6.7 Keywords for Applying Subschemas With Boolean Logic

6.7.1 allOf

6.7.2 anyOf

6.7.3 oneOf

6.7.4 not

Fix refs tests errors/failures

Load schemas, validate them according to themselves, find internal $ids

Download specs

  • [X] RFC 1035
  • [X] RFC 1123
  • [X] RFC 5321
  • [X] RFC 1034
  • [X] RFC 2673
  • [X] RFC 3986
  • [X] RFC 3987
  • [X] RFC 4291
  • [X] RFC 5322
  • [X] RFC 5890
  • [X] RFC 6531

[#B] 7. Semantic Validation With “format”

Fix remaining format tests (uri-template and idn-email), currently ignored

Finish schema validation (if, then, else)

Finish schema validation (allOf, anyOf, oneOf, not)

Finish schema validation (format)

[#A] Annotations

oneOf

[#C] Recursion protection (use schema-path visited hash-set)

[#C] 8. String-Encoding Non-JSON Data

[#C] 9. Schema Re-Use With “definitions”

[#C] 10. Schema Annotations

Default value annotations factored into oneOf in dependencies

Relative jsonpointer

Improve jsonpointer “Failed to locate” error messages

Improved error messages and locators

Download Ajv to compare

Compare with luposlip/json-schema/, particularly errors

Download release zip of JSON-Schema-Test-Suite or try with tools.deps tech to download git repo

[#C] Validation of schema regex value must conform to regex

This needs to be implemented for both

  • [ ] schema validation (pattern) and
  • [ ] instance format validation.

Use CircleCI (or TravisCI) to automatically run tests