Search by

dmstr / openapi-json-schema-bundle

schmunk

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

Statistics

Installs: 1 562

Dependents: 9

Suggesters: 0

Stars: 0

Open Issues: 0

0.6.0 2026-11-25 23:13 UTC

This package is auto-updated.

Last update: 2026-11-25 23:14:15 UTC


README

dmstr/openapi-json-schema-bundle

Inject JSON Schemas into OpenAPI documentation for API Platform.

Features (planned)

  • SchemaRegistry — merges provider schemas into a discriminated anyOf. Without registered providers, the unified schema is the boolean schema false, which rejects every input.
  • #[JsonSchema] attribute — references entity-local JSON Schema files
  • OperationInputSchemaResolver — entity-local + path-fallback schema lookup
  • InputSchemaValidator — 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