@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.

#oas #jsonschema

@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.

#jsonschema

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.

#jsonschema

Does it still make sense to maintain deterministic code generators? I mean for #OpenAPI. Since #JSONSchema translates so badly to classes in any programming language, generating with #LLM might work better with guessing what the author of the OpenAPI document or the generator library had in mind.

Than again, it's a bit of a coin flip :/

#programming #pythonLapidary
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.
GitHub - sourcemeta/jsonschema: The CLI for working with JSON Schema. Covers formatting, linting, testing, bundling, and more for both local development and CI/CD pipelines

The CLI for working with JSON Schema. Covers formatting, linting, testing, bundling, and more for both local development and CI/CD pipelines - sourcemeta/jsonschema

GitHub

Нотация к SQL-препроцессору, и не только

Статья представляет компактную математическую нотацию для SQL-препроцессора, разработанную для формирования сложных условных выражений из JSON-конфигураций. Нотация позволяет кратко записывать операции с множествами и интервалами: комбинированные операторы ( >=[18,65] ), стрелочные символы для интервалов ( >> — BETWEEN, >< — NOT BETWEEN) и логическое отрицание через знак минус. Цель — создать интуитивно понятный, непротиворечивый и расширяемый язык запросов. Практическое применение — генерация SQL-кода в препроцессорах, DSL для построителей запросов, компактные фильтры в JSON-API. Рассматриваются сильные стороны и потенциальные проблемы нотации, сравнительный анализ с аналогами (Quist, SQL++, PRQL), выявляется уникальность подхода. Автор приглашает к обсуждению и предлагает сотрудничество.

https://habr.com/ru/articles/1005772/

#sql #json #jsonschema #json_schema_validator #json_path

Нотация к SQL-препроцессору, и не только

Введение При решении одной прикладной задачи возникла необходимость формировать довольно длинные условные выражения в SQL-запросах на основе JSON-файла. Задача упрощалась тем обстоятельством, что...

Хабр
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?

#JsonSchema

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.Net

Read about it in my two-part blog posts:
https://blog.json-everything.net/

#dotnet #JsonSchema

JsonSchema.Net 8.0.0

JSON Schema built on the System.Text.Json namespace