@@ -10,7 +10,7 @@ def test_simple_schema(self):
1010 'a' : {'type' : ['null' , 'integer' ]},
1111 'b' : {'type' : ['null' , 'string' ]},
1212 'c' : {'type' : ['null' , 'boolean' ]},
13- 'dt' : {'type' : ['null' , 'string' ], 'format' : 'date-time' }
13+ 'dt' : {'type' : ['null' , 'string' ]}
1414 }
1515 }
1616 self .assertEqual (expected_schema , generate_schema (records ))
@@ -24,11 +24,11 @@ def test_mix_n_match_records_schema(self):
2424 expected_schema = {
2525 'type' : ['null' , 'object' ],
2626 'properties' : {'a' : {'anyOf' : [{'type' : ['null' , 'integer' ]},
27- {'type' : ['null' , 'string ' ]},
28- {'type' : ['null' , 'boolean ' ]}]},
27+ {'type' : ['null' , 'boolean ' ]},
28+ {'type' : ['null' , 'string ' ]}]},
2929 'b' : {'type' : ['null' , 'string' ]},
30- 'c' : {'anyOf' : [{'type' : ['null' , 'integer' ] },
31- {'type' : ['null' , 'string' ], 'format' : 'singer.decimal' }]},
30+ 'c' : {'anyOf' : [{'type' : ['null' , 'string' ], 'format' : 'singer.decimal' },
31+ {'type' : ['null' , 'integer' ] }]},
3232 'd' : {'anyOf' : [{'type' : ['null' , 'array' ],
3333 'items' : {'anyOf' : [{'type' : ['null' , 'integer' ]},
3434 {'type' : ['null' , 'string' ]}]}},
0 commit comments