dmstr / openapi-json-schema-bundle
Symfony bundle for integrating JSON Schema validation with API Platform OpenAPI documentation via dynamic schema aggregation (SchemaRegistry with anyOf merging, #[JsonSchema] attribute, OperationInputSchemaResolver, JedisonGrid decorator).
Package info
github.com/dmstr/openapi-json-schema-bundle
Type:symfony-bundle
pkg:composer/dmstr/openapi-json-schema-bundle
0.6.0
2026-11-25 23:13 UTC
Requires
- php: >=8.4
- api-platform/json-schema: ^4.2
- api-platform/metadata: ^4.2
- api-platform/openapi: ^4.2
- opis/json-schema: ^2.6
- psr/cache: ^3.0
- psr/log: ^3.0
- symfony/config: ^7.0
- symfony/dependency-injection: ^7.0
- symfony/framework-bundle: ^7.0
- symfony/http-kernel: ^7.0
Requires (Dev)
- phpunit/phpunit: ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
dmstr/openapi-json-schema-bundle
Inject JSON Schemas into OpenAPI documentation for API Platform.
Features (planned)
SchemaRegistry— merges provider schemas into a discriminatedanyOf. Without registered providers, the unified schema is the boolean schemafalse, which rejects every input.#[JsonSchema]attribute — references entity-local JSON Schema filesOperationInputSchemaResolver— entity-local + path-fallback schema lookupInputSchemaValidator— validates operation input (raw request body or decoded CLI options) against the schema the resolver chain returns: 400 for malformed JSON, 422 for a schema violation- OpenAPI decorators:
JsonFieldSchemaDecorator,JedisonGridSchemaDecorator,OperationInputSchemaDecorator DumpSchemaCommand— CLI utility
License
MIT © diemeisterei GmbH