#jsonschema — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jsonschema, aggregated by home.social.
-
Encode, don't stringify — как JSON.stringify вам врёт
Помните, как лет 5-7 назад все сидели на Yup или Ajv и всех всё устраивало? Потом появилось «Parse, don’t validate», стало настольной книгой для кучи разработчиков и в итоге выстрелило и у нас, в JavaScript и TypeScript. Тысячи библиотек со схемами - лучшее тому подтверждение. Но это уже решённая проблема. А вот что не решено — обратная сторона: JSON.stringify({ price: Infinity }) // => ‘{“price”:null}’ Ни падения, ни предупреждения. Где-то сломалась математика, а клиент получил null и нарисовал пустую ячейку. И это только один пункт из списка: undefined там, где в типах написано string; молча пропавшие ключи; Map и Set, превращающиеся в {}; и вообще отправляется всё - включая поля, которые вы отправлять не собирались. Кажется, за 7 лет разработки я собрал все эти грабли. В статье разбираю каждый пункт и показываю как это чинится - “Encode, don’t stringify”
-
Dear Ruby people, I know that is not how things work here, but can we agree on one DSL (gem) to define a JSON Schema? Please, there are way to many for my taste:
-
REST Assured: почему зелёные тесты пропускают баги в API
В статье разбираем практический маршрут на REST Assured 6.0.0 и JSON Schema: как закрыть структуру ответа одной проверкой, как сделать схему по-настоящему строгой и где в этой связке спрятан капкан, из-за которого схема с условной логикой выглядит рабочей, но не проверяет ничего.
https://habr.com/ru/companies/otus/articles/1047064/
#Java #автотесты #RESTAssured #JSONSchema #тестированиеAPI #контрактноетестирование #JSONSchemaValidator
-
One of my favourite source of confusion, changing the style of versioning!
I admit, I had to click on the top version to check if it is actually the most recent version or did they switch from year-month to draft-number.
-
This is noteworthy because I’m speaking about JSON Schema in a talk at @phptek next week (the talk is about OpenAPI).
-
Structured Outputs без иллюзий: как OpenAI, Gemini и xAI соблюдают JSON»-схемы
Проверили Structured Outputs у OpenAI, Gemini и xAI не “по документации”, а через adversarial-тесты: просили модели специально нарушить JSON Schema и смотрели, где провайдер реально удерживает формат ответа. В статье — методика, итоговая матрица ограничений, нюансы strict: true , anyOf / oneOf / allOf , и выводы для production-систем с несколькими LLM-провайдерами.
https://habr.com/ru/articles/1033478/
#llm #sgr #api #skillmd #skills_в_claude #pydantic #jsonschema
-
userver 3.0 — большой релиз фреймворка для IO‑bound‑программ, переход на C++20
Привет! На связи Антон Полухин из Техплатформы Городских сервисов Яндекса. После большого релиза 🐙 userver прошло почти два года. За это время мы обзавелись большим количеством внешних пользователей — международных и российских. При этом и количество внутренних пользователей подросло: в Городских сервисах Яндекса появились стни новых сервисов на userver. Функциональность Такси, Еды, Лавки, Доставки, а также Маркета, Финтеха, Фантеха, Электро и Техплатформы обогатилась новыми возможностями и новыми пользователями. А значит, фреймворк стал ещё надёжнее и оттестированнее. Мы не сидели сложа руки, и за два года реализовали, оптимизировали и добавили все обещанные в прошлой статье фичи, а также многое другое. Что нового в userver?
https://habr.com/ru/companies/yandex/articles/1012204/
#userver #c++ #c++20 #с++20 #с++ #optimization #optimizations #json #jsonschema #kafka
-
Improved support in JsonSchema.Net.DataGeneration!
- better regex
- better conditionals
- error reportingRead about it in my latest blog post!
https://blog.json-everything.net/posts/datagen-improvements/
-
Hey #dotnet #jsonschema folks! Given that JsonSchema.Net.Generation now supports source generation, does anyone have a real use case for runtime reflective generation?
I'd love you hear your thoughts.
https://github.com/json-everything/json-everything/issues/1016
-
@dvh laat zien dat hij all schema's uit de Open API Specs van de API's op apis.developer.overheid.nl heeft omgezet naar JSON Schema's. Dit levert een mooie inkijk in bestaande schema's vanuit verschillende organisaties.
-
@dvh laat ook zien dat deze JSON Schema's direct omgezet kunnen worden naar modellen in alle programmeertalen. Ook kan je het gebruiken voor typechecking in TypeScript.
-
Onze product-owner @dvh geeft een presentatie over een nieuw product: het schema register. Een register met herbruikbare JSON Schema's die oa gebruikt kunnen worden in Open API Specs.
-
I want to give a huge shout out to Juan Cruz Viotti and the #jsonschema tool he released as OSS, https://github.com/sourcemeta/jsonschema .
I recently updated our governance pipeline to use jsonschema to produce better analysis of the examples in our #OpenAPI documents. We created a lint-json-schema-examples tool which maps across all schemas in an OpenAPI doc and uses jsonschema to validate each example. While Spectral does some basic validation of examples, the diagnostics from jsonschema are far superior. -
Нотация к SQL-препроцессору, и не только
Статья представляет компактную математическую нотацию для SQL-препроцессора, разработанную для формирования сложных условных выражений из JSON-конфигураций. Нотация позволяет кратко записывать операции с множествами и интервалами: комбинированные операторы ( >=[18,65] ), стрелочные символы для интервалов ( >> — BETWEEN, >< — NOT BETWEEN) и логическое отрицание через знак минус. Цель — создать интуитивно понятный, непротиворечивый и расширяемый язык запросов. Практическое применение — генерация SQL-кода в препроцессорах, DSL для построителей запросов, компактные фильтры в JSON-API. Рассматриваются сильные стороны и потенциальные проблемы нотации, сравнительный анализ с аналогами (Quist, SQL++, PRQL), выявляется уникальность подхода. Автор приглашает к обсуждению и предлагает сотрудничество.
-
One Open-source Project Daily
Generate types and converters from JSON, Schema, and GraphQL
https://github.com/glideapps/quicktype
#1ospd #opensource #cplusplus #csharp #elm #golang #graphql #java #json #jsonschema #kotlin #objectivec #rust #swift #typescript -
JSON schemas define "anyOf" to mean matching one _or more_ of the subschemas. (This seems to be favored over "oneOf" which would require the implementation to check every schema to make sure exactly one matched, not two or more.)
But this seems to permit an ambiguity where different implementations could interpret the same message as different types. Is this ever a problem in practice, or has everybody de facto adopted "the first match in the list" semantics?
-
Since I'm not doing anything fancy in this holiday season, I'm taking the time to improve my @openapispec Spec skills with some lovely **#jsonSchema**
JSON Schema takes API Documentation to a whole other level, making everything way more clear for the people who will develop clients for your API.
Also, can't wait to do a deep dive into OpenAPI's Arazzo and Overlay, but that might take a little time.
(OAS + JSON Schema) === ❤️ <- True that!
-
I'm very proud to announce that after two years in the making, JsonSchema.Net v8.0.0 has finally been released!!! It's easier to work with and runs faster! It's a complete overhaul!
https://www.nuget.org/packages/JsonSchema.NetRead about it in my two-part blog posts:
https://blog.json-everything.net/ -
JSON Schema Demystified: Dialects, Vocabularies and Metaschemas
https://www.iankduncan.com/engineering/2025-11-24-json-schema-demystified/
#HackerNews #JSONSchema #Demystified #Dialects #Vocabularies #Metaschemas
-
🚀🚀 Exciting news! A *super lightweight* JSON schema library that requires you to enable JavaScript and cookies to even learn about it 😂 What better way to prove you're cutting-edge than by being utterly inaccessible? 🍪🔒
https://www.npmjs.com/package/tosijs-schema #superlightweight #JSONschema #accessibility #cuttingedge #technology #humor #HackerNews #ngated -
Tosijs-schema is a super lightweight schema-first LLM-native JSON schema library
https://www.npmjs.com/package/tosijs-schema
#HackerNews #TosijsSchema #JSONSchema #LLM #NativeLibrary #LightweightDevelopment
-
The initial example is based of my current character and it's looking decent. I'm not happy with the skill section, but this should get the job done. Still have to figure out how I want the damage to look on weapons. I also need to get spells into the schema, but I'll leave that alone for the time being.
-
Okay, I _think_ I've got everything in here...now time to write up an example and see if it looks good.
-
Creating Smart Data Models with BESSER https://modeling-languages.com/smart-data-models/
-
Generating Go code from JSON Schema documents
Looking at a couple of common libraries for generating Go `struct`s from JSON Schema documents.https://fed.brid.gy/r/https://www.jvt.me/posts/2025/06/05/json-schema-go/
-
🚀✨ Behold, mortals! After a century (or just a year) of "active development," Zod 4 finally emerges, faster and slimmer, like a tech-savvy fairy godmother sprinkling TypeScript efficiency. 🎩🪄 Thank you, Clerk, for heroically enduring this marathon of delay—who knew making a JSON schema could take longer than a Tolkien saga? 📜🕰️
https://zod.dev/v4 #Zod4 #ZodTypeScript #JSONSchema #TechNews #DeveloperCommunity #HackerNews #ngated