# hocon-validator **Repository Path**: mirrors_chezou/hocon-validator ## Basic Information - **Project Name**: hocon-validator - **Description**: HOCON validator - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hocon-validator [![Build Status](https://travis-ci.org/chezou/hocon-validator.svg?branch=master)](https://travis-ci.org/chezou/hocon-validator) HOCON validator, inspired by [JSON schema](http://json-schema.org/). If you can write schema file with YAML, you can validate your HOCON file. ## Requirements - pyyaml - pyhocon For developpers: ``` $ pip install -r requirements.txt -c constraints.txt ``` ## USAGE Install with pip: ``` $ pip install hocon-validator ``` You can run as follows: ``` $ hocon-validator.py [-h] hocon_file schema_file.yml ``` Example: OK pattern ``` $ python hocon-validator.py ./examples/tableau-impala-demo-cluster.conf ./examples/etableau-schema.yml HOCON file: ./examples/tableau-impala-demo-cluster.conf Schema file: ./examples/tableau-schema.yml Start validation... All required fields has passed! ``` NG pattern ``` $ python hocon-validator.py ./examples/tableau-impala-demo-cluster.conf ./examples/etableau-schema.yml HOCON file: ./examples/tableau-impala-demo-cluster.conf Schema file: ./examples/tableau-schema.yml Start validation... accessKeyId does not exist or is not a string value. secretAccessKey does not exist or is not a string value. ``` ## Schema See `./examples/tableau-schema.yml` for example.