validate_schema.sh 1.44 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
1
#!/bin/bash
canterafonsj's avatar
canterafonsj committed
2
3
4

ajv compile -s $SCHEMAS/Entity.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json

canterafonsj's avatar
canterafonsj committed
5
ajv compile -s $SCHEMAS/subscriptions/Subscription.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
6

canterafonsj's avatar
canterafonsj committed
7
ajv compile -s $SCHEMAS/temporal/EntityTemporal.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json
canterafonsj's avatar
canterafonsj committed
8

canterafonsj's avatar
canterafonsj committed
9
ajv compile -s $SCHEMAS/registrations/ContextSourceRegistration.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json
canterafonsj's avatar
canterafonsj committed
10

canterafonsj's avatar
canterafonsj committed
11
ajv compile -s $SCHEMAS/subscriptions/Notification.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json
canterafonsj's avatar
canterafonsj committed
12

canterafonsj's avatar
canterafonsj committed
13
ajv compile -s $SCHEMAS/registrations/ContextSourceNotification.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/registrations/ContextSourceRegistration.json
canterafonsj's avatar
canterafonsj committed
14

canterafonsj's avatar
canterafonsj committed
15
16
ajv compile -s $SCHEMAS/EntityList.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json

canterafonsj's avatar
canterafonsj committed
17
ajv compile -s $SCHEMAS/temporal/EntityTemporalList.json  -r $SCHEMAS/temporal/EntityTemporal.json -r $SCHEMAS/Entity.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json
18

canterafonsj's avatar
canterafonsj committed
19
20
21
22
ajv compile -s $SCHEMAS/BatchOperationResult.json -r $SCHEMAS/common.json

ajv compile -s $SCHEMAS/UpdateResult.json

canterafonsj's avatar
canterafonsj committed
23
24
ajv compile -s $SCHEMAS/Entity_keyValues.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json 

canterafonsj's avatar
canterafonsj committed
25
ajv compile -s $SCHEMAS/temporal/Entity_temporalValues.json -r $SCHEMAS/common.json -r $SCHEMAS/geometry-schema.json -r $SCHEMAS/Entity.json
canterafonsj's avatar
canterafonsj committed
26