Skip to content

Commit 9a704df

Browse files
committed
cleanup
1 parent f9e972f commit 9a704df

File tree

3 files changed

+13
-66
lines changed

3 files changed

+13
-66
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
edge-observations.json
2+
events/new_aggregate.json
3+
events/new_qname.json
4+
package-lock.json

Makefile

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
GENERATED= events-mqtt-message.json \
2-
edge-configuration.json
1+
GENERATED= events/new_qname.json \
2+
events/new_aggregate.json \
3+
edge-observations.json
34

45

5-
validate: $(GENERATED)
6-
ajv --spec=draft2019 --strict=false compile -s $<
6+
all: $(GENERATED) validate
77

8-
events-mqtt-message.json: events-mqtt-message.yaml
9-
yq . < $< -o json > $@
8+
validate:
9+
for file in $(GENERATED) ; do \
10+
ajv --spec=draft2020 --strict=false compile -s $$file ;\
11+
done
1012

11-
edge-configuration.json: edge-configuration.yaml
13+
%.json: %.yaml
1214
yq . < $< -o json > $@
1315

1416
clean:

schemasplit.py

-59
This file was deleted.

0 commit comments

Comments
 (0)