Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

I’m trying to verify whether messages produced using Confluent’s KafkaJsonSchemaSerializer are correctly serialized in the expected Confluent wire format (i.e. a “magic byte” followed by a 4-byte ...
Priyanshu Sharma's user avatar
0 votes
2 answers
86 views

I have this json schema: { "$schema": "http://json-schema.org/draft-04/schema#", "description": "The description of OpenAPI v3.0.x documents, as defined by https:...
user51's user avatar
  • 10.6k
0 votes
1 answer
149 views

i need to set default value in enum, if UI passing string is passing empty or null or "" "BankAccount":{ "type": "String", "enum": ["Y", &...
Kiran Babu's user avatar
0 votes
1 answer
159 views

I have a JSON schema like this: { "authentication": { // provider is an enum. Let's say it has A and B as values. // if A is chosen, jwt must have a value. // if B is chosen, ...
S. ten Brinke's user avatar
3 votes
0 answers
377 views

I am using com.networknt:json-schema-validator lib to validate the incoming json request body in my spring boot server against the pre loaded schema and its working fine. Now I also want to validate ...
V John's user avatar
  • 147
0 votes
1 answer
78 views

I have a JSON schema { "type": "object", "required": ["version"], "additionalProperties": false, "properties": { "version": { ...
am1988's user avatar
  • 1
0 votes
1 answer
30 views

Is there any way I can insert a property into this validator for inserting documents into MongoDB that will not impact validation but that I can retrieve via query? To give some context: I use the ...
Brayan Vinicius Jordan's user avatar
2 votes
4 answers
1k views

I've been using the OpenAPI 3.0 schema to validate OpenAPI 3.0 specifications. However, I don't seem to be able to use the OpenAPI 3.1 schema to validate an OpenAPI 3.1 specification. With OpenAPI 3.0 ...
bgh's user avatar
  • 2,200
1 vote
1 answer
63 views

I expect array A to contain at least all the elements of attribute array B. Here are some examples: // valid { "A": [1,2,3], "B": [1,2] } // valid { "A": [1,2], "B&...
clove682's user avatar
0 votes
1 answer
125 views

I'm trying to do json schema validation in spring boot 3.3.3, in resources folder I have put the schemas main.json, sub1.json and sub2.json. I’m using $ref to refer other schema objects from main ...
Arun's user avatar
  • 1
2 votes
0 answers
145 views

In networknt/json-schema-validator, the maximum keyword accepts only number type as argument. In AJV json schema validator, maximum keyword accepts both number type as well as string or json pointer ...
user1630923's user avatar
0 votes
0 answers
69 views

I am trying to validate a JSON schema against the JSON input. I am using org.everit.json.schema-1.12.1.jar My JSON input: { "id": 200, "name": "Green Learner", "cost&...
chandan Kr.'s user avatar
0 votes
1 answer
60 views

I have a YAML schema splitted in two files. Like this: main.yaml type: object properties: a: description: variable a type: string b: description: variable b $ref: support.yaml and ...
Joao Pedro P.P's user avatar
1 vote
2 answers
61 views

I have this problem where I have a json schema similar to { "$schema" : "https://json-schema.org/draft-07/schema", "type" : "object", "title&...
repsick3r's user avatar
0 votes
1 answer
137 views

I have a JSON object where one of the fields contains a JSON string. I need to write a JSON schema that validates this JSON string field. Here's an example of the JSON object I'm working with: { &...
Sai Prasanna S's user avatar
1 vote
1 answer
99 views

I am trying to write JSON schema to validate JSON file with following content: { "number" : "1", "rootProperty": [ { "property1"...
Pranav's user avatar
  • 11
0 votes
1 answer
79 views

I have the following json schema that I want to use to validate data. It works well when using jsonschema to validate the basic information and conditional scenarios. But I have a specific problem ...
b101's user avatar
  • 297
0 votes
1 answer
85 views

Code below throws a validation error: jsonschema.exceptions.ValidationError: '[1,1]' is not of type 'array' I've checked with online validators and they seem fine - what have I done wrong? import json ...
user21141188's user avatar
0 votes
1 answer
232 views

I'm having trouble getting a Maven Eclipse project to build in both Maven and Eclipse. The problem appears to be that the JSON validation library com.networknt wants to be required (in module-info....
fig's user avatar
  • 830
-1 votes
1 answer
274 views

With the help of networknt json-schema-validator i'm trying to validate json schema. The below code is working fine in Android 11 val mapper = ObjectMapper(YAMLFactory()) val jsonNodeReader = ...
Vignesh's user avatar
  • 2,333
0 votes
0 answers
81 views

I am trying to validate response body on matching the JSON schema using Rest Assured 5.4.0 and receiving: io.restassured.module.jsv.JsonSchemaValidationException: com.fasterxml.jackson.core....
Sergey K's user avatar
0 votes
1 answer
58 views

I am expanding an existing feature, and as such the API payload needs to be updated. Due to constraints outside of my control, I need to support the legacy payload in conjunction with the new payload. ...
Matt's user avatar
  • 1,167
0 votes
2 answers
585 views

I tried to validate this schema using NjsonSchema but I getting error like ": 'Could not resolve the JSON path '/defs/product' because no document path is available.'" this is my main-schema-...
Karthick J's user avatar
1 vote
0 answers
33 views

Imagine we have a JSON schema where one property of a subschema is mutually exclusive depending on the value of a property of another subschema. When doing the if-else statement, how can I reference ...
danielampr's user avatar
-1 votes
1 answer
140 views

I use a json schema which refers to another json schema as follows : Schema 1 (cache_test.json) { "$schema": "https://json-schema.org/draft/2020-12/schema", "$...
javaseeker's user avatar
0 votes
1 answer
282 views

I am using the following schema to validate json. When I have more than one element in the array of appData, it validates only the first index of the array. The other indexes are not validated. How ...
javaseeker's user avatar
1 vote
1 answer
552 views

I am a bit new to using nodejs to validate a request object with the schema. As long as the value in request object for "from" is not '0' the validation passes. But the moment I use '0' ...
Abhinav Mehrotra's user avatar
0 votes
2 answers
76 views

I am attempting to define two possible sets of patternProperties using anyOf, but I would like to exclude any properties that don't fit either of those patterns. However, when defining ...
JohnRDOrazio's user avatar
  • 1,644
0 votes
1 answer
471 views

I'm using JSON Schema to validate a json object like below: { "json": { "is_expanded_identification": false, "identity": ...
leah's user avatar
  • 1
4 votes
1 answer
226 views

I was trying to use Vertx's JSON Schema standards for validating the following schema: { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https:...
Tijo's user avatar
  • 163
1 vote
0 answers
135 views

How to convert XSD to JSON Schema using JavaScript in Postman scripts to validate JSON API requests and responses? I used the below code to fetch the XSD in the Postman script but now trying to ...
P.Parikh's user avatar
0 votes
3 answers
158 views

Following is the schema. Example 1) components: schemas: GroupHeader114: <-- clause 1 type: object properties: Authstn: type: object oneOf: ...
yapkm01's user avatar
  • 3,811
0 votes
2 answers
202 views

The following Python script must validate the number of decimal places in the records. In the schema, I am trying to define that it has 3 decimal places, using "multipleOf": 0.001. I have a ...
Antonio José's user avatar
0 votes
0 answers
527 views

I have a composite json schema and I am switching over to using Ajv and have been slogging through cleaning up strict warnings. I am down to my last few but I cannot figure out the source of the ...
gnichola's user avatar
  • 199
0 votes
1 answer
374 views

public class Response_SchemaValidation { public static void main(String [] args) throws FileNotFoundException { System.out.println("This is testing..."); ...
Reddy Anand's user avatar
1 vote
1 answer
77 views

I am using xdmp:json-validate-node function to validate json document before inserting it to MarkLogic. but seems json schema validation does not raise error when number typed field has NaN value. I ...
JayDip's user avatar
  • 13
3 votes
1 answer
2k views

I am working on a project using Nextjs, Reactjs and TypeScript. I have integrated Monaco editor in the website and want to validate the user provided JSON code against the draft 2020-12. I am using ...
Vivek Jaiswal's user avatar
1 vote
2 answers
261 views

i am using jsonschema validation library of python to perform the schema validation below are the code snippet used along with the schema version and sample json data. my question is when i am using ...
MykG's user avatar
  • 143
0 votes
1 answer
32 views

Following is my JSON Schema , My requirement is if MID = specificValue1 then "Investigation Request Conf Reason code" this field should be mandatory I have also added my reference Input JSON ...
prk's user avatar
  • 3
0 votes
1 answer
405 views

I am trying to validate JSON strings in Java 17. Currently I am using: com.fasterxml.jackson.core and com.networknt:json-schema-validator The problem is that when I enter elements in the array that ...
StarMcSnow's user avatar
1 vote
1 answer
150 views

my goal is to create a schema containing any number array of items where each individual item has "key" string property based on which the "data" property schema changes. Below is ...
iwangrozny's user avatar
-2 votes
1 answer
336 views

I have below json schema, i want to use python's library to validate the input json against given schema, it's using draft-08 version i.e., 2019-09. so i tried using below code for the same but it ...
MykG's user avatar
  • 143
0 votes
1 answer
164 views

I want to restrict my application to only support "string" type values for json configuration. Json schema by default supports a set of datatypes such as integer, boolean, etc however, the ...
Mohit Jain's user avatar
0 votes
0 answers
116 views

I required a help on JSON schema and JSON validation where We have a requirement to have multiple attributes (built-in and custom) for a property in C# and then serialize them into JSON schema. I am ...
Developer 's user avatar
1 vote
1 answer
556 views

I'm wanting to set a minimum amount on one field based off another field. For example if I have a quoteAmountLower and quoteAmountUpper - I want quoteAmountUpper to be greater than quoteAmountLower. ...
Nathan Green's user avatar
0 votes
1 answer
143 views

Is there a way to check whether a property is present in the array, but only in one of the items? In the following example, the "filename" and "format" must be present at least in ...
Elephant's user avatar
  • 749
1 vote
1 answer
735 views

I'm designing a JSON schema with a recursive element. This element is not at the root, but in a subschema: { "$schema": "https://json-schema.org/draft/2020-12/schema", &...
user3758232's user avatar
0 votes
0 answers
93 views

I want to use the jsonschema library. I need to use validate function to validate the JSON schema but I can't install the library using pip command due to some restrictions on the server. How can I ...
Aditya Gupta's user avatar
0 votes
1 answer
117 views

I have a json like this: {"mylist": ["a", "b", "c", "d", additional_element]} additional_element could be one of the following four strings - "w&...
Nitesh's user avatar
  • 177
0 votes
1 answer
49 views

Is it possible to check if an array of strings has an odd amount of items using JSON Schema? This would be valid: { list: [ 'one', 'two', 'three' ] } This would be valid as ...
ghaschel's user avatar
  • 1,353

1
2 3 4 5
16