Browse our blogs activity over the years…
Blog
Json Schema Patterns in .NET - Polymorphism with discriminator properties
Use const-valued properties as discriminators in a oneOf union to implement the same polymorphic dispatch pattern used by System.Text.Json, illustrated with JSON Patch operations.
Json Schema Patterns in .NET - Pattern matching and discriminated unions
JSON Schema's oneOf keyword creates exhaustive discriminated unions, solving the two biggest problems with C# inheritance-based unions: invasiveness and missing-case bugs.
Json Schema Patterns in .NET - Interfaces and mix-in types
Compose multiple independent JSON Schemas into a single type using allOf — the schema equivalent of implementing multiple interfaces, with Corvus.JsonSchema.
Json Schema Patterns in .NET - Creating tuples
JSON Schema's prefixItems keyword maps to C# ValueTuples. Combined with unevaluatedItems: false, it creates fixed-length, mixed-type arrays with strongly typed accessors.
Json Schema Patterns in .NET - Working with tensors
Fixed-size numeric arrays defined in JSON Schema can be converted to and from Span<T> for use with System.Numerics.Tensors, enabling zero-allocation interop for ML and math workloads.
Json Schema Patterns in .NET - Creating an array of higher rank
Model multi-dimensional arrays (rank 2+) in JSON Schema by nesting array definitions with items. Use minItems/maxItems to fix dimensions or allow ragged arrays.
Json Schema Patterns in .NET - Creating a strongly typed array
Define typed arrays in JSON Schema using items, minItems, and maxItems. Corvus.JsonSchema generates strongly typed accessors, enumerators, and IEnumerable support for LINQ.
Json Schema Patterns in .NET - Constraining a base type
Narrow the validation rules of an existing JSON Schema type by adding tighter constraints on its properties. Unlike OO overrides, constraints compose: both base and derived rules apply.
Json Schema Patterns in .NET - Extending a base type
Extend an open JSON Schema type with new properties using $ref — similar to deriving from a base class in C#. Corvus.JsonSchema combines both schemas into one type.
Json Schema Patterns in .NET - Open vs. Closed Types
JSON Schema objects are open by default, allowing extra properties for forwards compatibility — use unevaluatedProperties to close them for strict validation.
Json Schema Patterns in .NET - Reusing Common Types
Use $ref and $defs to extract shared schema definitions and reuse them across properties. Corvus.JsonSchema generates a single shared .NET type, eliminating duplication.
Json Schema Patterns in .NET - Data Object Validation
Add required fields, string length limits, and numeric range constraints to a JSON Schema data object — and see how Corvus.JsonSchema enforces them in C#.
Json Schema Patterns in .NET - Data Object
Define a simple data object in JSON Schema and generate strongly typed C# with Corvus.JsonSchema — properties, implicit conversions, and fast serialization.
.NET JsonElement and Schema Validation
Corvus.JsonSchema enables safe use of the very high performance JSON parsing offered by .NET's System.Text.Json.
Data is a socio-technical endeavour
Our experience shows that the the most successful data projects rely heavily on building a multi-disciplinary team.
ASP.NET Core + Razor + HTMX + Chart.js
Build modern interactive web apps with ASP.NET Core, Razor, and HTMX — bridging HTMX hypermedia to Chart.js JSON APIs using HATEOAS-style stateful links.
adr - A .NET Tool for Creating & Managing Architecture Decision Records
Architectural Decision Records (ADRs) capture context, options, decisions, and consequences. dotnet-adr is a .NET tool for managing ADRs.
Data and AI Engineering Maturity - Fix our problems before we hit the buffers
As data and AI become the engine of business change, we need to learn the lessons of the past to avoid expensive failures.
SQLbits 2024 - The Best Bits
This is a summary of the sessions I attended at SQLbits 2024 - Europe's largest expert led data conference. This year SQLBits was hosted at Farnborough IECC, Hampshire.
How to Build Navigation into Power BI
Explore a step-by-step guide on designing a side nav in Power BI, covering form, icons, states, actions, with a view to enhancing report design & UI.
How to access multi-select choice column choice labels from Azure Synapse Link for Dataverse with PySpark or SQL
Learn how to access multi-select choice column choice labels from Azure Synapse Link for Dataverse using PySpark or SQL.
Introduction to Python Logging in Synapse Notebooks
The first step on the road to implementing observability in your Python notebooks is basic logging. In this post, we look at how you can use Python's built in logging inside a Synapse notebook.
No-code/Low-code is software DIY - how do you avoid DIY disaster?
No-code/Low-code democratizes software development with little to no coding skills needed. But how do you evaluate if software DIY is the right choice for you?
.NET JsonElement Error Handling
.NET's System.Text.Json offers very high performance JSON parsing. However, JsonElement's text parsing methods offer a trap for the unwary
Analysing WPF Performance Using ETW and PerfView
This post walks through the process of using PerfView to analyse ETW data to get to the bottom of a performance issue in a WPF application.
Browse our archives by topic…