// readme

Corvus.Text.Json

High-performance, source-generated, strongly-typed C# models from JSON Schema β€” with pooled-memory parsing, full draft 4 through 2020-12 validation, and 136B per-document allocation.

Features

  • Source Generation β€” Generate strongly-typed C# from JSON Schema at build time with the Roslyn incremental source generator, or ahead of time with the corvusjson CLI tool.
  • OpenAPI β€” Generate strongly-typed OpenAPI 2.0, 3.0, 3.1, and 3.2 HTTP clients and ASP.NET Core server stubs with typed parameters, request/response validation, streaming, and result matching.
  • AsyncAPI β€” Generate strongly-typed AsyncAPI 2.6 and 3.0 producers, consumers, handlers, and request/reply flows with broker transport packages for NATS, Kafka, AMQP, MQTT, WebSocket, and Azure Service Bus.
  • Schema Validation β€” Full JSON Schema draft 4, 6, 7, 2019-09, and 2020-12 validation. Over 10Γ— faster than other .NET JSON Schema validators.
  • Pooled Memory β€” ParsedJsonDocument<T> uses ArrayPool<byte> for minimal GC impact. Just 136 bytes per-document allocation.
  • Mutable Documents β€” JsonDocumentBuilder<T> and JsonWorkspace provide a builder…