17 Commits

Author SHA1 Message Date
AnthorNet
655011cae2 FIx schema change filename 2015-05-19 14:30:53 +02:00
AnthorNet
e234c59aac Add required to commodity v2
-> softwareName
-> softwareVersion
-> uploaderID
2015-05-07 13:15:10 +02:00
AnthorNet
3c91042e34 Revert "Add null option to levelType enum"
This reverts commit 6b7096f6f7df092ea3a075e8e0b99094b1303834.
2015-04-15 18:41:14 +02:00
AnthorNet
6b7096f6f7 Add null option to levelType enum
Eg, when supply or demand is 0, level should be null.
2015-04-15 18:29:30 +02:00
AnthorNet
198031d740 Added minLength to prevent empty properties 2015-04-15 14:54:21 +02:00
AnthorNet
fa9f06b9c4 Revert Commodity name validation 2015-04-15 12:18:58 +02:00
AnthorNet
fd496a0e29 Update commoditiesName description
- Update commoditiesName description.
- Some refactoring
2015-04-15 10:08:11 +02:00
AnthorNet
bf7e64e97a Refactoring and Validation
- Removed useless "additionalProperties"
- Ensure validation of commodities name
- Refactored formating for readability
2015-04-15 09:54:08 +02:00
James Muscat
5bd5b001d8 Draft v2.0 schema provided by AnthorNet. 2015-04-14 23:54:46 +01:00
James Muscat
e5af51d29b Some schema validators object to these IDs. They don't actually do
anything, so just get rid of them.
2015-04-14 23:42:51 +01:00
James Muscat
960179f073 Be honest about the existence of the gatewayTimestamp property. 2014-12-18 16:55:48 +00:00
James Muscat
3336105f54 buyPrice can be null (e.g. station has no stock to sell you); in those
situations it makes sense to omit it.
2014-12-18 15:01:06 +00:00
James Muscat
cee1900e88 By popular request, add optional supply/demand properties; clarify what
the sell and buy prices are; give timestamp a format restriction.
2014-12-18 14:47:36 +00:00
James Muscat
d4e51775d3 Typo 2014-12-17 19:52:25 +00:00
James Muscat
8845cdca80 Allow other, undefined properties in the schema; don't require any of
the header properties (but do require the header).
2014-12-17 19:50:06 +00:00
James Muscat
66bfe98c14 Validate against draft Commodity schema. 2014-12-17 14:18:58 +00:00
James Muscat
a7925923cf Configure Validator with our schema (don't do the validation yet). 2014-12-17 14:06:53 +00:00