101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

487
active users

#jsonschema

0 posts0 participants0 posts today
Ben Ramsey<p>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.</p><p>To be clear: I consider myself proficient with JSON Schema, but this library introduces concepts I've never heard of, like "slots."</p><p><a href="https://opis.io/json-schema" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">opis.io/json-schema</span><span class="invisible"></span></a></p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/JSONSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSONSchema</span></a></p>
Larry Garfield<p>Why is it the language-agnostic formats for defining data models are either</p><p>1. Grossly over-engineered for one purpose<br>2. Grossly over-verbose<br>3. Both</p><p>Where's my clean, easy syntax for defining data classes that can be generated into *simple* PHP, JS, Kotlin, etc? Where's my DTO-maker format?</p><p><a href="https://phpc.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://phpc.social/tags/Rant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rant</span></a> <a href="https://phpc.social/tags/Protobuf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Protobuf</span></a> <a href="https://phpc.social/tags/Openapi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Openapi</span></a> <a href="https://phpc.social/tags/jsonschema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonschema</span></a> <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a></p>
Jordi Cabot<p>🎉🥳 NEW RELEASE 🎉🥳 </p><p>Happy to present you a new release of the BESSER platform, with two exciting improvements:</p><p>1️⃣ <a href="https://fediscience.org/tags/Feature" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Feature</span></a> <a href="https://fediscience.org/tags/metamodel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>metamodel</span></a> extension: In <a href="https://fediscience.org/tags/BUML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BUML</span></a> you can define now feature models to define structured representations of the features (functionalities or characteristics) of a system, capturing their variability and dependencies.</p><p>2️⃣ <a href="https://fediscience.org/tags/JSONSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSONSchema</span></a> <a href="https://fediscience.org/tags/generator" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>generator</span></a>: This generator consumes a B-UML structural model and produces the equivalent JSON schema that can be used to validate whether given <a href="https://fediscience.org/tags/JSON" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSON</span></a> objects conform to the schema.</p><p>➕ many other improvements. </p><p>⚒️ Release notes <a href="https://github.com/BESSER-PEARL/BESSER/releases/tag/v2.3.0" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/BESSER-PEARL/BESSER</span><span class="invisible">/releases/tag/v2.3.0</span></a></p><p><a href="https://fediscience.org/tags/release" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>release</span></a> <a href="https://fediscience.org/tags/lowcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lowcode</span></a> <a href="https://fediscience.org/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a></p>
Zło To<p>Lapidary-render 0.12.0 is now released. </p><p>To the best of my knowledge it&#39;s the only <a href="https://101010.pl/tags/codeGenerator" class="mention hashtag" rel="tag">#<span>codeGenerator</span></a> that properly handles <a href="https://101010.pl/tags/jsonSchema" class="mention hashtag" rel="tag">#<span>jsonSchema</span></a> anyOf and allOf. <br />Also has support for oneOf, but not per the specs.</p><p><a href="https://github.com/python-lapidary/lapidary-render/releases/tag/v0.12.0" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/python-lapidary/lap</span><span class="invisible">idary-render/releases/tag/v0.12.0</span></a></p><p><a href="https://101010.pl/tags/pythonLapidary" class="mention hashtag" rel="tag">#<span>pythonLapidary</span></a> <a href="https://101010.pl/tags/openAPI" class="mention hashtag" rel="tag">#<span>openAPI</span></a> <a href="https://101010.pl/tags/openAPI3" class="mention hashtag" rel="tag">#<span>openAPI3</span></a> <a href="https://101010.pl/tags/openAPI30" class="mention hashtag" rel="tag">#<span>openAPI30</span></a> <a href="https://101010.pl/tags/programming" class="mention hashtag" rel="tag">#<span>programming</span></a> <a href="https://101010.pl/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> <a href="https://101010.pl/tags/webAPI" class="mention hashtag" rel="tag">#<span>webAPI</span></a></p>
michabbb<p>• 🔄 Convert seamlessly between data formats for easier sharing and collaboration <a href="https://social.vivaldi.net/tags/datavisualization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datavisualization</span></a><br>• ⚙️ Format, validate, and generate <a href="https://social.vivaldi.net/tags/TypeScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TypeScript</span></a> interfaces, <a href="https://social.vivaldi.net/tags/Golang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Golang</span></a> structs, and <a href="https://social.vivaldi.net/tags/JSONSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSONSchema</span></a> from your data</p>
$(cat /dev/urandom)<p><a href="https://fosstodon.org/tags/JSONSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSONSchema</span></a> in <a href="https://fosstodon.org/tags/OpenAPI30x" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenAPI30x</span></a> was just lovely. Consider this schema:</p><p>anyOf:<br>- type: object<br>- type: integer<br> maximum: 20<br> nullable: true</p><p>Does null value validate? No.<br>Value must validate against at least one leg of anyOf *and* against the parent. Other than anyOf, the parent is empty which means any value will validate against it ...except for null.</p><p>How to write a schema for nullable union (two types plus null)? You can't.</p><p>Why so many projects still use it 🤦</p><p><a href="https://fosstodon.org/tags/openAPI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openAPI</span></a> <a href="https://fosstodon.org/tags/openAPI3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openAPI3</span></a> <a href="https://fosstodon.org/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
gregsdennis<p>Just got a huge contribution from <a href="https://github.com/cptjazz" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/cptjazz</span><span class="invisible"></span></a>!</p><p>He spent two weeks digging in JsonPointer.Net to cut parsing time and memory usage in half!</p><p>What's really cool is the fall-on effect this has for JsonSchema.Net, which makes heavy use of pointers!</p><p><a href="https://dotnet.social/tags/jsonpointer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonpointer</span></a> <a href="https://dotnet.social/tags/jsonschema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonschema</span></a> <a href="https://dotnet.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a> <a href="https://dotnet.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a></p>
Timothée Mazzucotelli :python:<p>How do you generate JSON schemas of your dataclasses' **inputs**? Any third-party library (something else than stdlib's dataclasses) allowing one to do that?</p><p>For example, input type is `int | str`, but final/output type is always `int` (coerced). I want to document the input type, not the output type.</p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/pydantic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pydantic</span></a> <a href="https://fosstodon.org/tags/dataclass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataclass</span></a> <a href="https://fosstodon.org/tags/attrs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>attrs</span></a> <a href="https://fosstodon.org/tags/jsonschema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonschema</span></a></p>
Zło To<p>Just rewriting <a href="https://101010.pl/tags/jinja" class="mention hashtag" rel="tag">#<span>jinja</span></a> python code generator to <a href="https://101010.pl/tags/libCST" class="mention hashtag" rel="tag">#<span>libCST</span></a> . So far it takes more code to do the same but it&#39;s much simpler to do the hard stuff, especially when there&#39;s a lot of conditionals.</p><p>Take annotated class field: can be generic or not, can have annotated metadata or not. Annotated metadata may be name (class or function), generic or not, or a call, and so on.</p><p>A big nuisance of libCST is indentation - it belongs to the previous node, even though we tend to think as part of the next one. For an indented language it&#39;s rather weird design decision.</p><p><a href="https://101010.pl/tags/JSONSchema" class="mention hashtag" rel="tag">#<span>JSONSchema</span></a> <a href="https://101010.pl/tags/codeGenerator" class="mention hashtag" rel="tag">#<span>codeGenerator</span></a> <a href="https://101010.pl/tags/programming" class="mention hashtag" rel="tag">#<span>programming</span></a> <a href="https://101010.pl/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> <a href="https://101010.pl/tags/pythonLapidary" class="mention hashtag" rel="tag">#<span>pythonLapidary</span></a></p>
Alexander Tikhonov<p>Just published <a href="https://mastodon.social/tags/mashumaro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mashumaro</span></a> 3.15 with the <a href="https://mastodon.social/tags/JSONSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSONSchema</span></a> plugin system! 🎉 I guess the next thing will be plugins for serialization and deserialization. Who knows, maybe this will be my ticket to strict validation and speeding up with <a href="https://mastodon.social/tags/cython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cython</span></a>. On a side note, I believe I’m among the last developers to discontinue support for <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> 3.8.</p><p><a href="https://github.com/Fatal1ty/mashumaro/releases/tag/v3.15" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Fatal1ty/mashumaro/</span><span class="invisible">releases/tag/v3.15</span></a></p>
Sam Lehman :nixos:<p><span class="h-card" translate="no"><a href="https://floss.social/@CleoMenezesJr" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>CleoMenezesJr</span></a></span> Most of my <a href="https://fosstodon.org/tags/GTK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GTK</span></a> app wishlist is either <a href="https://fosstodon.org/tags/GTK4" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GTK4</span></a> modernization or new features for existing apps...mainly <a href="https://fosstodon.org/tags/SelfHosted" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfHosted</span></a> server sync. Would be nice to login to <a href="https://fosstodon.org/tags/Nextcloud" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Nextcloud</span></a> via GOA &amp; have a solid client for each NC app.</p><p>Outside of that:</p><p>- Database viewer / query runner<br>- REST API tester<br>- <a href="https://fosstodon.org/tags/ActivityPub" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ActivityPub</span></a> tester<br>- Clients for various fediverse servers<br>- <a href="https://fosstodon.org/tags/JSONSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSONSchema</span></a> / <a href="https://fosstodon.org/tags/Cuelang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cuelang</span></a> / <a href="https://fosstodon.org/tags/Nickel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Nickel</span></a> contract validator<br>- GIF search<br>- GitHub / <a href="https://fosstodon.org/tags/Forgejo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Forgejo</span></a> Actions manager &amp; runner<br>- <a href="https://fosstodon.org/tags/systemd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>systemd</span></a> unit manager</p>
Zło To<p>When validating against additionalProperties: false, should properties declared under anyOf or allOf also be considered?</p><p>For example</p><p>Value:</p><p>```yaml<br />key: value<br />```<br />Schema:</p><p>```yaml<br />type: object<br />properties: []<br />additionalProperties: false<br />allOf:<br />- properties:<br /> - key<br /> type: string<br />```</p><p>Is the property &quot;key&quot; valid in this object?</p><p><a href="https://101010.pl/tags/JsonSchema" class="mention hashtag" rel="tag">#<span>JsonSchema</span></a></p>
Zło To<p>JSON allows to declare a $schema so that tools can validate it, make hints and show warnings during editing.<br />Similarly Java tool Apache Maven uses XSD for the same purpose.</p><p>Would have been great if we could register some kind of schemas for our `[tool]` sections to let editors/IDEs know the valid contents. Not necessarily JSON Schema, but maybe a dataclass?</p><p><a href="https://101010.pl/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> <a href="https://101010.pl/tags/pypa" class="mention hashtag" rel="tag">#<span>pypa</span></a> <a href="https://101010.pl/tags/json" class="mention hashtag" rel="tag">#<span>json</span></a> <a href="https://101010.pl/tags/JsonSchema" class="mention hashtag" rel="tag">#<span>JsonSchema</span></a> <a href="https://101010.pl/tags/xsd" class="mention hashtag" rel="tag">#<span>xsd</span></a> <a href="https://101010.pl/tags/IDE" class="mention hashtag" rel="tag">#<span>IDE</span></a></p>
Matthew Adams<p>We've just shipped Preview 10 of Corvus.JsonSchema, our low-allocation, high performance code generator and validator for <a href="https://dotnet.social/tags/json" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>json</span></a> and <a href="https://dotnet.social/tags/jsonschema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonschema</span></a> on <a href="https://dotnet.social/tags/csharp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>csharp</span></a> and <a href="https://dotnet.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a>.</p><p>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!</p><p>If you run on .NET 8 we get a 13% perf improvement on our "typical usage" benchmark.</p><p>.NET 9 has a whopping 32% perf uplift.</p><p><a href="https://www.nuget.org/packages/Corvus.Json.JsonSchema.TypeGeneratorTool#versions-body-tab" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">nuget.org/packages/Corvus.Json</span><span class="invisible">.JsonSchema.TypeGeneratorTool#versions-body-tab</span></a></p>
Julian Berman<p>Will keep this brief!</p><p>(Everything here, as always, are thoughts and opinions only on my own behalf.)</p><p>As you may have seen elsewhere, my tenure working on <a href="https://mastodon.social/tags/jsonschema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonschema</span></a> at Postman is ending, as it has for the rest of the JSON Schema &amp; <a href="https://mastodon.social/tags/AsyncAPI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AsyncAPI</span></a> teams.</p><p>I have nothing but positive things to say about the opportunity to work full-time on open source software &amp; will continue to encourage more companies to do so for the projects they rely on.</p><p>1/</p>
gregsdennis<p>I'm excited to announce that <a href="https://dotnet.social/tags/jsoneverything" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsoneverything</span></a> is joining the <a href="https://dotnet.social/tags/dotnetfoundation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnetfoundation</span></a>!!!!</p><p><a href="https://blog.json-everything.net/posts/joining-net-foundation/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.json-everything.net/posts</span><span class="invisible">/joining-net-foundation/</span></a></p><p><a href="https://dotnet.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a> <a href="https://dotnet.social/tags/jsonschema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonschema</span></a> <a href="https://dotnet.social/tags/jsonpath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonpath</span></a></p>
Matthew Adams<p>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.<br> <br>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&nbsp;Corvus.JsonSchema).</p><p><a href="https://endjin.com/blog/2024/05/json-schema-patterns-dotnet-data-object" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">endjin.com/blog/2024/05/json-s</span><span class="invisible">chema-patterns-dotnet-data-object</span></a><br> <br><a href="https://dotnet.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a> <a href="https://dotnet.social/tags/json" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>json</span></a> <a href="https://dotnet.social/tags/jsonSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonSchema</span></a></p>
Matthew Adams<p>Some new features in Corvus.JsonSchema - our low-allocation, high-performance <a href="https://dotnet.social/tags/JsonSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JsonSchema</span></a> serialization &amp; validation library for <a href="https://dotnet.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a>.</p><p>V3.0.10 brings support for arrays of rank &gt;= 1, including C#12 collection expression initializers, and the ability to set values deep within an array of rank &gt; 1.</p><p>We detect fixed-size numeric arrays of any rank, and allow you to convert to- and from-Span&lt;T&gt; for use in vectorized APIs such as System.Numerics.TensorPrimitives.</p><p><a href="https://github.com/corvus-dotnet/corvus.jsonschema" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/corvus-dotnet/corvu</span><span class="invisible">s.jsonschema</span></a></p>
Matthew Adams<p>I'm really excited to be able to tell you that Corvus.JsonSchema - our low-allocation, high-performance <a href="https://dotnet.social/tags/jsonschema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonschema</span></a> based serialization and validation library for <a href="https://dotnet.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a> - has been selected as a Google Summer of Code project for 2024. <a href="https://dotnet.social/tags/gsoc24" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gsoc24</span></a> </p><p>We are looking forward to getting Source Generator support, to make it even easier for people to take advantage of the library!</p><p><a href="https://summerofcode.withgoogle.com/programs/2024/projects/JBmyddo1" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">summerofcode.withgoogle.com/pr</span><span class="invisible">ograms/2024/projects/JBmyddo1</span></a></p><p><a href="https://github.com/corvus-dotnet/corvus.jsonschema" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/corvus-dotnet/corvu</span><span class="invisible">s.jsonschema</span></a></p>
Matthew Adams<p>V3.0.3 of Corvus.JsonSchema for low-allocation, high performance <a href="https://dotnet.social/tags/jsonSchema" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsonSchema</span></a> serialization and validation on <a href="https://dotnet.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dotnet</span></a> is out now!</p><p>Get it while it's still warm from the oven.</p><p><a href="https://www.nuget.org/packages/Corvus.Json.JsonSchema.TypeGeneratorTool" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">nuget.org/packages/Corvus.Json</span><span class="invisible">.JsonSchema.TypeGeneratorTool</span></a></p><p>This version now recognizes prefixItems with unevaluatedItems: false as strongly-typed tuples and emits code that gives you Item1 (..2...3) accessors and implicit conversions to and from dotnet native ValueTuples of the correct type.</p>