diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3e42d5e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +kind: pipeline +name: validate-json + +steps: +- name: validate ucDevices.json + image: fftdf/docker-json-validate + commands: + - jsonlint ucDevices.json + when: + event: push + +- name: validate Devices.json + image: fftdf/docker-json-validate + commands: + - jsonlint devices.json + when: + event: push \ No newline at end of file diff --git a/devices.json b/devices.json new file mode 100644 index 0000000..d487d4e --- /dev/null +++ b/devices.json @@ -0,0 +1,5 @@ +{ + "devices":[ + + ] +} \ No newline at end of file diff --git a/ucDevices.json b/ucDevices.json new file mode 100644 index 0000000..d790509 --- /dev/null +++ b/ucDevices.json @@ -0,0 +1,15 @@ +{ + "devices":[ + { + "name": "BEISPIEL ABĂ„NDERN!!!!!!", + "mac": "18:e8:29:9c:90:ae", + "gateway_nexthop": "18e82924170a", + "gateway": "a28cae6ff604", + "linked_to": "18:e8:29:24:17:0a", + "location": { + "longitude":7.122931927, + "latitude":50.818885422 + } + } + ] + } \ No newline at end of file