Elasticsearch JSON Linting

Lint Elasticsearch mapping json

docker run --rm -d --name eslint -p 19200:9200 \
-e "discovery.type=single-node" -e "xpack.security.enabled=false" \
-p 9200:9200 docker.elastic.co/elasticsearch/elasticsearch:8.13.0

Note: I used the port mapping 19200:9200 because I was getting bind port errors (nothing else was using that port) for port 9200

curl -X PUT localhost:19200/test-mapping -H "Content-Type: application/json" -d @test.json | jq