mrsuh/json-validation-bundle
A Symfony bundle for validating JSON documents against JSON Schema. Add schema-based validation to request payloads, forms, and APIs with a dedicated constraint and clear, actionable error messages.
opis/json-schema or justinrainbow/json-schema. The real decision is whether a thin DI-wired wrapper is worth a dependency. A PM can frame this as roughly 1–2 engineer-days of in-house work versus adopting a 17-star, single-maintainer package — which usually argues for building the wrapper and keeping the dependency surface small.v2 rollouts and sunset dates instead of guessing.Adopt it when most of the following hold:
$defs, unevaluatedProperties, or newer if/then semantics.Look elsewhere when:
opis/json-schema directly (faster, actively maintained, broader draft support) inside a FormRequest or middleware.league/openapi-psr7-validator or generate schemas from an OpenAPI document.To executives (one paragraph): This package is a small, MIT-licensed validator that checks JSON request and response payloads against a declared schema. The business value is not the library itself — it is the practice: catching API contract breaks in CI instead of in a customer incident, and making breaking changes visible before they ship. The package is low-risk from a licensing standpoint but high-risk from a maintenance standpoint (17 stars, one maintainer, last release in 2023, no downstream dependents), and it is built for Symfony, not Laravel. Recommendation: adopt the pattern, not the artifact. Fund a small internal validation layer over an actively maintained JSON Schema library, and revisit this bundle only if the stack standardizes on Symfony.
To engineering (bullets):
opis/json-schema (~1–2 days), exposing a middleware for inbound validation and a test helper for outbound response assertions, with schemas versioned alongside the API in the repo.How can I help you explore Laravel packages today?