Skip to content

About

Symfony bundle for JSON Schema validation in API Platform OpenAPI: SchemaRegistry with anyOf merging, #[JsonSchema] attribute, OperationInputSchemaResolver, JedisonGrid decorator.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

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

About

Symfony bundle for JSON Schema validation in API Platform OpenAPI: SchemaRegistry with anyOf merging, #[JsonSchema] attribute, OperationInputSchemaResolver, JedisonGrid decorator.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages