validate_examples.sh 1.53 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
1
2
#!/bin/bash

André Costa's avatar
André Costa committed
3
ajv validate -s ./schema/Entity.json -d ./examples/Entity-example.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
4

André Costa's avatar
André Costa committed
5
ajv validate -s ./schema/Entity.json -d ./examples/Vehicle_C2.2.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
6

André Costa's avatar
André Costa committed
7
ajv validate -s ./schema/Entity.json -d ./examples/OffStreetParking_C2.3.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
8

André Costa's avatar
André Costa committed
9
ajv validate -s ./schema/Entity_keyValues.json -d ./examples/Vehicle_keyValues_C2.2.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
10

André Costa's avatar
André Costa committed
11
ajv validate -s ./schema/Entity_keyValues.json -d ./examples/OffStreetParking_keyValues_C2.3.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
12

André Costa's avatar
André Costa committed
13
ajv validate -s ./schema/Entity.json -d ./examples/Vehicle_MultiAttribute_C2.2.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
14

André Costa's avatar
André Costa committed
15
ajv validate -s ./schema/subscriptions/Subscription.json -d ./examples/Subscription-example_C.4.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
16

André Costa's avatar
André Costa committed
17
ajv validate -s ./schema/registrations/ContextSourceRegistration.json -d ./examples/ContextSourceRegistration-example_C.3.json -r ./schema/common.json -r ./schema/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
18

André Costa's avatar
André Costa committed
19
ajv validate -s ./schema/temporal/EntityTemporal.json -d ./examples/EntityTemporal-example_C5.5.3.json -r ./schema/common.json -r ./schema/geometry-schema.json -r ./schema/Entity.json
canterafonsj's avatar
canterafonsj committed
20

André Costa's avatar
André Costa committed
21
ajv validate -s ./schema/temporal/Entity_temporalValues.json -d ./examples/Entity_temporalValues_C.5.6.3.json -r ./schema/common.json -r ./schema/geometry-schema.json -r ./schema/Entity.json
canterafonsj's avatar
canterafonsj committed
22