Top "Jsonschema" questions

A JSON Schema is a JSON document (an object) which defines constraints on what other JSON documents (the instances) should obey; it can also be used to interpret instances so as to provide links to external resources (hyper schema).

oneOf in Swagger schema does not work

I want to define PaymentMethod as below. Is oneOf supported in swagger.yaml? PaymentMethod: oneOf: - $ref: '#/definitions/NewPaymentMethod' …

yaml swagger jsonschema
How to use definitions in JSON schema (draft-04)

The rest service response I am working with is similar to following example, I have only included 3 fields here but …

json jsonschema
How to define JSON Schema for Map<String, Integer>?

I have a json : { "itemTypes": {"food":22,"electrical":2}, "itemCounts":{"NA":211} } Here the itemTypes and itemCounts will be common but not the …

json schema geojson jsonschema json-schema-validator
jsonschema multiple values for string property

I have a json schema which describes a fairly complex API querying syntax. A few of the properties are pattern …

json validation jsonschema
JSON schema validation

Is there a stable library that can validate JSON against a schema? json-schema.org provides a list of implementations. Notably …

c++ c json jsonschema
Json Schema validation: do not allow fields other than those declared in schema

Suppose that I have schema like fname: string lname: string age: string None of them are required. User can send …

json validation jsonschema
How to create JSON Schema for Name/Value structure?

My problem is that i am serializing the content of map to JSON. In the output (JSON), i have object …

java javascript json jsonschema
JSON Schema with unknown property names

I want to have a JSON Schema with unknown property names in an array of objects. A good example is …

json jsonschema
JSON Schema to check date of YYYY-MM-DD

Could someone tell me JSON Schema Validation for accepting date of YYYY-MM-DD format alone? My sample JSON: {"data1" : "foo", "date" :"2016…

java json date jsonschema
How to define a JSON schema that requires at least one of many properties

I would like to know if I can define a JSON schema (draft 4) that requires at least one of many …

json jsonschema