#jsonschema

2025-06-05

Generating Go code from JSON Schema documents

Looking at a couple of common libraries for generating Go `struct`s from JSON Schema documents.

fed.brid.gy/r/https://www.jvt.

Featured image for sharing metadata for article
N-gated Hacker Newsngate
2025-05-19

🚀✨ 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? 📜🕰️
zod.dev/v4

2025-05-07

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

#PHP #JSONSchema

2025-04-29

Semantic-release в GitLab: автоматизируем CHANGELOG

Привет, Хабр! На проекте была одна довольно типичная и, мягко говоря, надоедливая проблема: разработчики вручную заполняли CHANGELOG при выкатке новой версии приложения. Иногда информация туда попадала точная и соответствующая реальным изменениям, иногда – частично верная, а иногда и вовсе напрочь забытая. Решение нашлось довольно элегантное – интегрировать инструмент semantic-release в наш пайплайн CI/CD. Но оказалось, что найти полноценное руководство по его настройке, особенно с учетом корпоративного GitLab и плагина semantic-release/changelog, не так-то просто. Собирал информацию буквально по крупицам из различных источников, и вот теперь делюсь с вами проверенной пошаговой инструкцией.

habr.com/ru/companies/mvideo/a

#мвидео #эльдорадо #json #jsonb #jsonp #jsonschema #json_api #json_schema_validator #json_web_token #jsonrpc

N-gated Hacker Newsngate
2025-04-12

🚀🤡 Behold, the Zod 4 beta: the latest and greatest in the ancient art of making JSON schema sound like the discovery of fire. 🔥 After a year of mysterious "active development," it's finally here - now with more buzzwords and endless promises! Just install with pnpm, cross your fingers, and pray Clerk's "generosity" doesn't run out. 🙏
v4.zod.dev/v4

Larry GarfieldCrell@phpc.social
2025-04-11

Why is it the language-agnostic formats for defining data models are either

1. Grossly over-engineered for one purpose
2. Grossly over-verbose
3. Both

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?

#Programming #Rant #Protobuf #Openapi #jsonschema #PHP #Javascript

2025-04-09

Another quality of life improvement is that we now have a #JSONschema via @pydantic for #MultiQC configuration files 🎉

This has been added to schemastore.org so that config files in #VSCode & other IDEs automatically get integrated error checking as you type, see docs.seqera.io/multiqc/getting

Andreas Hallerahx@ruby.social
2025-03-10

"The `dependentRequired` keyword conditionally requires that certain properties must be present if a given property is present in an object"

json-schema.org/understanding-

#jsonschema

2025-03-05

🎉🥳 NEW RELEASE 🎉🥳

Happy to present you a new release of the BESSER platform, with two exciting improvements:

1️⃣ #Feature #metamodel extension: In #BUML you can define now feature models to define structured representations of the features (functionalities or characteristics) of a system, capturing their variability and dependencies.

2️⃣ #JSONSchema #generator: This generator consumes a B-UML structural model and produces the equivalent JSON schema that can be used to validate whether given #JSON objects conform to the schema.

➕ many other improvements.

⚒️ Release notes github.com/BESSER-PEARL/BESSER

#release #lowcode #opensource

2025-03-01

Lapidary-render 0.12.0 is now released.

To the best of my knowledge it's the only #codeGenerator that properly handles #jsonSchema anyOf and allOf.
Also has support for oneOf, but not per the specs.

github.com/python-lapidary/lap

#pythonLapidary #openAPI #openAPI3 #openAPI30 #programming #python #webAPI

2025-02-27

Как сделать красивое резюме используя JSON

Я устал от постоянного редактирования дизайна резюме и решил действовать по-своему. В статье я рассказываю, как мне удалось создать инструмент, который позволяет хранить все сведения о моем опыте в одном месте и обновлять их без лишних хлопот. Если вам знакомо чувство, когда форматирование отнимает время у самой сути пути – читайте мой опыт разработки решения, которое избавляет от постоянных правок и помогает сосредоточиться на самом главном. Буду рад услышать ваши идеи в комментариях к статье

habr.com/ru/articles/883858/

#resume #json #jsonschema #hr #hrпроцесс #cv

2025-02-21

Магический метод работы с формами

Видеоаналитика в СИБУРе — это сложный и многогранный продукт, который внедряется на разных производствах. Несмотря на то, что это один продукт, его конфигурация может сильно отличаться: используются различные камеры, детекторы и параметры, а также интеграции с разнообразными сторонними системами. В таких условиях инженеру не всегда понятно, что именно надо дописать, а валидация происходит только после окончания редактирования файла и перезапуска сервиса. Логичное решение — предоставить инженерам удобный интерфейс, где они смогут заполнять форму и сразу видеть ошибки. Меня зовут Владимир Кирилкин, я техлид в Цифровом СИБУРе, в команде Индустрии 4.0. Мы разрабатываем продукт «Видеоаналитика на производстве», и о наших задачах уже писали на Хабре ( habr.com/ru/companies/sibur_official/articles/700634/ ). Мы подошли к задаче нестандартно: вместо заранее заданных форм на фронте реализовали их автоматическую генерацию с использованием JSON-схем и немного ✨магии✨. Наши сервисы построены на Python и React, но предложенный подход можно адаптировать и для других технологий — правда, с чуть меньшим количеством ✨магии✨.

habr.com/ru/companies/sibur_of

#формы #jsonschema #pydantic #python #react #backend_driven_ui #сибур_цифровой #heavy_digital #промышленность #промышленное_программирование

2025-02-18

• 🔄 Convert seamlessly between data formats for easier sharing and collaboration #datavisualization
• ⚙️ Format, validate, and generate #TypeScript interfaces, #Golang structs, and #JSONSchema from your data

Andreas Hallerahx@ruby.social
2025-02-11

I still feel uncertain about how to describe file uploads in #openapi . Do you just use multipart/form-data with a „type: string, format: binary“ field or „contentMediaType“? How do you solve that?

#apis #openapi #jsonschema

Brandon Bennettnemith@hachyderm.io
2025-02-05

If I really hated someone I would make them edit JSON Schema docs by hand.

#jsonschema

2025-01-22

Turning things into quick Cuelang types looks, for me, like running a data structure through jet to .edn, then using malli to provide a schema for the data, output that as a json schema and pull it back into cue.

I should point out that malli will automatically derive a schema for any data you feed it.

#Cuelang #Cue #Edn #Malli #JsonSchema #Babashka

EDN to Json schema turnaround
2025-01-19

Just got a huge contribution from github.com/cptjazz!

He spent two weeks digging in JsonPointer.Net to cut parsing time and memory usage in half!

What's really cool is the fall-on effect this has for JsonSchema.Net, which makes heavy use of pointers!

#jsonpointer #jsonschema #dotnet #opensource

2025-01-14

Do you find yourself on the edge of your seat wondering what could be next for the #jsonschema specification? Well worry not: I wrote a blog post just for you!

A new spec is coming, and we're focusing on stability between releases with a new publication process.

json-schema.org/blog/posts/sta

Timothée Mazzucotelli :python:pawamoy@fosstodon.org
2024-12-31

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?

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.

#python #pydantic #dataclass #attrs #jsonschema

VSCode not supporting json schema draft/2019-09 seems like such an oversight to me. It's been nearly 7 years!

I really, really need unevaluatedProperties

#programming #json #vscode #jsonschema

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst