aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/json-schema.js
Commit message (Collapse)AuthorAge
* Fix default options missing profiles (#829)toasted-nutbread2020-09-13
| | | | | * Add minItems requirement for profiles array * Use minItems/maxItems for default value construction
* OptionsUtil refactor / options default values (#807)toasted-nutbread2020-09-11
| | | | | | | | | | | | | | | | | | | | | | | * Replace _readFile with _fetchAsset for consistency with Backend * Fix error messages * Make OptionsUtil non-static * Update how default options are assigned * Add createValidatingProxy * Add validate, update _onApiSetAllSettings * Remove unused api.optionsSchemaGet * Remove Backend._optionsSchema * Update OptionsUtil to create its own JsonSchemaValidator * Rename Backend._optionsSchemaValidator * Make getDefault non-async
* Json schema profile conditions (#758)toasted-nutbread2020-09-04
| | | | | | | | | | | | | | | * Add clearCache function * Add upgrade * Use schema-based profile condition validation * Update profile conditions settings controller * Remove unnecessary async * Remove old * Remove unused templates
* JSON schema refactor (#731)toasted-nutbread2020-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | * Remove JsonSchema.clone * Move createProxy function * Group public properties first * Create private version of getPropertySchema * Mark functions as private * Use non-static getValidValueOrDefault * Mark private * Make public validate function not take an info parameter * Remove JsonSchema * Add isValid function * Use isValid for some tests * Fix incorrect type
* More JSON schema improvements (#729)toasted-nutbread2020-08-11
| | | | | | | | | * Add support for constant values * Add contains check for arrays * Add tests * Simplify getValidValueOrDefault testing
* Json schema improvements (#722)toasted-nutbread2020-08-09
| | | | | | | | | | | | | * Add support for regex pattern testing * Add tests * Separate JsonSchemaProxyHandler statics into JsonSchemaValidator * Use this instead of JsonSchemaValidator * Make JsonSchemaValidator non-static * Use cache map for regex
* Make JsonSchemaProxyHandler.unconstrainedSchema public and non-configurable ↵toasted-nutbread2020-07-03
| | | | (#636)
* Clone function (#624)toasted-nutbread2020-06-28
| | | | | | | | | | | * Add clone function * Replace utilIsolate with clone * Replace JsonSchema.isolate with clone function * Include core.js for tests which use json-schema.js * Update visisted set
* Update license author field to broader to explicitly reflect thatAlex Yatskov2020-04-10
| | | | | Yomichan is an ongoing community project. It really does take a village, and everyone who contributes code owns a part of it :)
* Add no-shadowtoasted-nutbread2020-02-22
|
* Fix inittoasted-nutbread2020-02-02
|
* Improve schema path when using getPropertySchematoasted-nutbread2020-02-02
|
* Update how property schemas are returnedtoasted-nutbread2020-02-02
|
* Fix missing elsetoasted-nutbread2020-02-02
|
* Add improved error information when validation failstoasted-nutbread2020-02-02
|
* Fix ifSchematoasted-nutbread2020-02-02
|
* Fix conditional logictoasted-nutbread2020-02-02
|
* Update schema validation to throw errorstoasted-nutbread2020-02-02
|
* getSchemaOrValueType return nulltoasted-nutbread2020-02-02
|
* Fix maxLength checktoasted-nutbread2020-02-02
|
* Improve getPropertySchema's type detectiontoasted-nutbread2020-02-02
|
* Add validate on JsonSchematoasted-nutbread2020-02-02
|
* Improve support for array schemastoasted-nutbread2020-02-02
|
* Return unconstrained schema when additionalProperties is true/undefinedtoasted-nutbread2020-02-02
|
* Add support for conditionalstoasted-nutbread2020-02-02
|
* Add support for allOf, anyOf, oneOf, and nottoasted-nutbread2020-02-02
|
* Add simplified isObject testtoasted-nutbread2020-02-02
|
* Update license info URLtoasted-nutbread2020-01-01
|
* Update copyrighttoasted-nutbread2020-01-01
|
* Fix schema defaults not applying to arraystoasted-nutbread2019-12-29
|
* Create proxy system for json schema validationtoasted-nutbread2019-12-29