json_schema
json_schema copied to clipboard
dart implementation of json schema validator!
## Ultimate problem: When running an application using json_schema with debugger, I tend to break on every exception. The json_schema initialization unnecessarily tried to parse the contents of `_fetchedFromUri`, which...
## Type Bug ## Details The result of ValidationResults.toString() is incorrect due to wrong order in conditional operators. ```dart class ValidationResults { @override String toString() { return '${errors.isEmpty ? 'VALID'...
We should use the dart-lang/setup-dart/.github/workflows/publish.yml@v1 workflow provided by the `setup-dart` GHA action instead of home-rolling our own. Something like this: ```yaml jobs: publish: name: Publish to pub.dev uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 ```...
oneOf fails to vaildate. I believe this is a ~~bug.~~ This is not a bug, but the error message is unclear. ## Details ``` { "description": "Set audio normalization mapping...
## Ultimate problem: Error message would show for strings `maxLength exceeded (abcd vs 3)` instead of `maxLength exceeded (4 vs 3)` also for minLength ## How it was fixed: returned...
## Type Improvement ## Details Currently to return the results to a high level, such as when you have wrapped it in a method, have to add the specific import...
## Type Improvement ## Details Right now the library does not export models like "ValidationErrors", "ValidationError", etc. It should be possible to import them via a library import. ## Possible...
## Ultimate problem: we don't `resolvePath` on relative refs (i.e. /items vs #/items) ## How it was fixed: Look for `/` in resolvePath to see if there is a relative...
## Ultimate problem: `schemaPath` and `instancePath` on `ValidationError` is never `null`, so users shouldn't need to check for `null`. ## How it was fixed: `schemaPath` and `instancePath` was made non-nullable....
## Ultimate problem: Lack of built-in 'idn-email' format validation. ## How it was fixed: It was fixed using `rfc_6531` package. ## Testing suggestions: Testing is built-in into `rfc_6531` package. ##...