I would like to apply an additional "required" property in an array sub schema based on the presence of a property in the root schema. I have my schema set like this:  {     "$schema": "http://json-schema.org/draft-07/schema#"...
I've been writing simple JSON schemas but I ran into an API input call that is a bit more complex. I have one restful end route that can take 3 very different types of JSON:  localhost/foo  can take:  { "type" : "ice_cream", "...
Suppose we have schema following schema (from tutorial here):   {   "$schema": "http://json-schema.org/draft-04/schema#",    "definitions": {     "address": {       "type": "object",       "properti...
Here's my JSON Schema:  {   "required": [     "username",     "password",     "confirmPassword"   ],   "properties": {     "username": {       "minLength": 3,       "type": "stri...
Using express-jsonschema  How to validation two fields, for example:  ("quantity" == 0 && "actualQuantity" == 0) || ("quantity" > 0 && "actualQuantity" > 0)...
I have a json schema defining several properties. I've moved 2 of the properties to definitions and I make references to them. I did this because I wanted to group them together and do some testing for these properties in a generic way. This work...
I am trying to validate JSON scheme using TV4.   My validation is using hierarchical JSON and is based on this basic example:  var data = {     "foo": "bar" };  var schema = {     "type": "object",     "properties&...
I faced a problem with validating a list of boolean values. My input is:  [true,true,false]  and it should not verify this because only lists with one and only one true value, should be true. At the moment my schema does a sort of inclusive OR by acc...
I'm evaluating using JSON Schema for validating form data.  I can use it to validate my form data when you click submit using AJV and then check it again on the server using a PHP implementation of JSON Schema.  That part sounds great, but I'...
I have got a problem with changing json schema with angular schema form. If I set up schema like in code like this  $scope.schema = {     "$schema": "http://json-schema.org/draft-04/schema#",     "title": "Schema number ON...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.