Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

v3.0.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@karenetheridge karenetheridge released this 24 Nov 22:35
· 88 commits to master since this release
452beea

Release 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

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

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

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