v3.0.8
Pre-releaseRelease v3.0.8
PR #1066 - json validation cleanup, part 1
-
Branch: ether/json-validation-cleanup1
-
Revision: eaf84c1
-
Labels: refactor
phase 1 of cleaning up how we do JSON validation internally
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2020-11-19T18:24:31Z
Commits
- 11384e -
render these validation failure log messages nicer
- dac184 -
add a few more basic checks for http standards conformance
- 93ff39 -
remove numeric coercion in query_params validation
- bf6724 -
apply defaults when parsing query parameters
- ef5556 -
eliminate some unneeded local variables
- b03734 -
support $t->json_schema_is('http...')
- f308f3 -
s/definitions/$defs/ in all JSON schemas
PR #1067 - json validation cleanup, part 2
-
Branch: ether/json-validation-cleanup2
-
Revision: 546f7e3
-
Labels: api, enhancement, refactor
- remove all uses of JSON::Validator and switch to JSON::Schema::Draft201909 (which also moves us from using the draft 07 to draft 2019-09 JSON Schema specification)
- and many schema cleanups as a side effect of the upgrade
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2020-11-24T20:09:38Z
Commits
- 06bb36 -
convert all JSON Schema validation functionality from JSON::Validator to JSON::Schema::Draft201909
- b03bf7 -
optimize schemas for draft2019-09 semantics
- 945533 -
use a stricter metaschema for our schemas
- 2c8023 -
fully resolve the schema URI that is returned in validation errors
- 50036a -
tighten these schemas
- 5089db -
loosen schema for response device report format
- a9b073 -
fix errors in (commented-out portion of) rollbar payload schema
- 820dc6 -
modularize some schema definitions for reuse
- 8b6ce6 -
use more compact list syntax
PR #1068 - json validation cleanup, part 3
-
Branch: ether/json-validation-cleanup3
-
Revision: 452beea
-
Labels: api, refactor
Validate query parameters, request response body payloads in one place consistently and generate relevant error responses on failure - moves declaration of json schema definitions outside of controllers and into the route definitions.
People
-
Author: karenetheridge
-
Merged By: karenetheridge
-
Merged: 2020-11-24T22:16:37Z
Commits
- 0fcb08 -
validate query params and request body payload in a hook, configured via the stash
- fc0c21 -
declare some request schema validations for those endpoints that lacked it
- 2c0d74 -
validate_all_requests feature, to be used in development and staging environments
- 5ef663 -
validate_all_responses feature, to be used in development and staging environments
- 873e5b -
add Link header, describing the structure of the response