View Single Post
  #7  
Old 07-06-2016, 11:51 AM
wilso448 wilso448 is offline
Member
 
Join Date: Jul 2016
Posts: 6
wilso448 has 10 reputation points
Default

I found a generator that will return my schema from the output. But it seems like Breeze doesn't recognize Interger as a json type.

Here is the schema:

{"$schema":"http://json-schema.org/draft-04/schema#","type":"object","properties":{"coord":{"t ype":"object","properties":{"lon":{"type":"number" },"lat":{"type":"number"}}},"weather":{"type":"arr ay","items":{}},"base":{"type":"string"},"main":{" type":"object","properties":{"temp":{"type":"numbe r"},"pressure":{"type":"integer"},"humidity":{"typ e":"integer"},"temp_min":{"type":"number"},"temp_m ax":{"type":"number"}}},"wind":{"type":"object","p roperties":{"speed":{"type":"number"},"deg":{"type ":"integer"}}},"clouds":{"type":"object","properti es":{"all":{"type":"integer"}}},"dt":{"type":"inte ger"},"sys":{"type":"object","properties":{"type": {"type":"integer"},"id":{"type":"integer"},"messag e":{"type":"number"},"country":{"type":"string"}," sunrise":{"type":"integer"},"sunset":{"type":"inte ger"}}},"id":{"type":"integer"},"name":{"type":"st ring"},"cod":{"type":"integer"}}}

here are the errors i am getting from breeze.

Output Schema: Integer is not a valid JSON data type at 'id'.
Output Schema: Integer is not a valid JSON data type at 'dt'.
Output Schema: Integer is not a valid JSON data type at 'cod'.
Output Schema: Integer is not a valid JSON data type at 'all'.
Output Schema: Integer is not a valid JSON data type at 'deg'.
Output Schema: Integer is not a valid JSON data type at 'id'.
Output Schema: Integer is not a valid JSON data type at 'sunset'.
Output Schema: Integer is not a valid JSON data type at 'sunrise'.
Output Schema: Integer is not a valid JSON data type at 'type'.
Output Schema: Integer is not a valid JSON data type at 'id'.
Output Schema: Integer is not a valid JSON data type at 'humidity'.
Output Schema: Integer is not a valid JSON data type at 'pressure'.
Reply With Quote