mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

577
comptes actifs

#jsonschema

0 message0 participant0 message aujourd’hui

Does anyone know any practical guides for using opis/json-schema? The library appears to do what I need (with full support for draft 2020-12 of JSON Schema), but while the documentation is pretty, it assumes a level of familiarity with terms I don't know, and its examples seem incomplete.

To be clear: I consider myself proficient with JSON Schema, but this library introduces concepts I've never heard of, like "slots."

opis.io/json-schema

opis.ioOpis JSON Schema | PHP LibraryOpis JSON Schema is a PHP library, fully compliant with the latest JSON Schema specification that can be used to validate JSON documents

We've just shipped Preview 10 of Corvus.JsonSchema, our low-allocation, high performance code generator and validator for #json and #jsonschema on #csharp and #dotnet.

This preview is preparing for the .NET 9.0 wave, and takes a dependency on the RC1 preview System.Text.Json libraries. Don't worry, it still supports netstandard2.0 and net8.0!

If you run on .NET 8 we get a 13% perf improvement on our "typical usage" benchmark.

.NET 9 has a whopping 32% perf uplift.

nuget.org/packages/Corvus.Json

www.nuget.orgCorvus.Json.JsonSchema.TypeGeneratorTool 3.1.1Package Description

Will keep this brief!

(Everything here, as always, are thoughts and opinions only on my own behalf.)

As you may have seen elsewhere, my tenure working on #jsonschema at Postman is ending, as it has for the rest of the JSON Schema & #AsyncAPI teams.

I have nothing but positive things to say about the opportunity to work full-time on open source software & will continue to encourage more companies to do so for the projects they rely on.

1/

We've just published a series of 17 (!) posts on common patterns in JSON Schema; lots of these have been culled from questions asked in the JSON-Schema Slack channel.

They are written from the perspective of .NET developers who are used to JSON serialization as a code-first exercise, and want to migrate towards schema-first (with generated code examples from Corvus.JsonSchema).

endjin.com/blog/2024/05/json-s

#dotnet #json #jsonSchema

endjin.comJson Schema Patterns in .NET - Data Object | endjinCommon patterns with C# and JSON Schema - the simple data object.

Some new features in Corvus.JsonSchema - our low-allocation, high-performance #JsonSchema serialization & validation library for #dotnet.

V3.0.10 brings support for arrays of rank >= 1, including C#12 collection expression initializers, and the ability to set values deep within an array of rank > 1.

We detect fixed-size numeric arrays of any rank, and allow you to convert to- and from-Span<T> for use in vectorized APIs such as System.Numerics.TensorPrimitives.

github.com/corvus-dotnet/corvu

GitHubGitHub - corvus-dotnet/Corvus.JsonSchema: Support for Json Schema validation and entity generationSupport for Json Schema validation and entity generation - corvus-dotnet/Corvus.JsonSchema

We've shipped a new version of Corvus #jsonSchema github.com/corvus-dotnet/Corvu

This has a number of updates, the most significant of which is stable ordering of property names in e.g. Create() methods.

While this is not technically a breaking change, because the ordering was unstable before, it is more-or-less guaranteed to break your code if you relied on property ordering rather than naming.

Recommendation: explicitly specify your parameter names on calls to Create() before you regenerate.

GitHubGitHub - corvus-dotnet/Corvus.JsonSchema: Support for Json Schema validation and entity generationSupport for Json Schema validation and entity generation - corvus-dotnet/Corvus.JsonSchema