Closed zakgreene closed 9 years ago
Yeah, that error is resulting because, in JSON, schema requirements are applied if a field exists. So the unit must be at least 1 character long if it exists. Fields that do not have a value should not be defined, which is to say that, yes, keys with blank values should be dropped.
Ok, keys with blank values are now dropped, and everything seems to be validating.
Ok, all of the JSON now validates, except I'm getting an error when I leave out the unit number.
In general, if a field is blank, should I also remove that key from the JSON object, or should I just leave the value blank?