Questions tagged [json-schema]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

How to define an array of json reference types in a json-schema?

Given the three schema fragments: "column": { "type": "object", "$id": "#column", "properties": { "name": { "type": "string" }, "ordinal": { ...
0
votes
1answer
49 views

Which is better for my use case? A hybrid customer data model or a document store customer data model?

I am trying to get some preliminary insight into the pros and cons of using either a hybrid model (jsonb document-relational) or an all jsonb document store model for customer data in PostgreSQL. Both ...
2
votes
1answer
47 views

What is the purpose of adding a schema validation in responses?

Many of the server scripting packages/tools out there have the option to have a schema validation before the response is sent out to the clients. E.g. the fastify package for a Node.js has a pretty ...
2
votes
1answer
49 views

Content Types of JSON in particular schema

My application stores two different types of json data in s3. For example: Schema-Foo and Schema-Bar. Up to now I used the content-type application/json for both. I would like to make a distinction ...
2
votes
2answers
161 views

How to model JSON data so it can be easily de-serialized in to simple Java classes?

Context Currently I'm struggling with correctly modeling a small instruction set I want to send as JSON to an Android application to generate a list of UI parts. Right now it's layered as pretty much ...
-1
votes
1answer
67 views

With a Web API, list of objects or dictionary with list?

Sorry if the question is worded badly, I couldn't think of a short way of explaining it without examples. My question is if you are hosting a JSON API, which is better: [ { "name": "Foo", "...