https://github.com/shaded-enmity/ansible-schema-generator
Generate JSON schema for language servers from Ansible module documentation
https://github.com/shaded-enmity/ansible-schema-generator
ansible generator json-schema python2
Last synced: 8 days ago
JSON representation
Generate JSON schema for language servers from Ansible module documentation
- Host: GitHub
- URL: https://github.com/shaded-enmity/ansible-schema-generator
- Owner: shaded-enmity
- License: gpl-3.0
- Created: 2017-12-04T11:21:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T15:41:12.000Z (over 5 years ago)
- Last Synced: 2025-04-23T00:45:22.492Z (8 days ago)
- Topics: ansible, generator, json-schema, python2
- Language: Python
- Size: 509 KB
- Stars: 35
- Watchers: 2
- Forks: 8
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-schema-generator
[](https://travis-ci.org/shaded-enmity/ansible-schema-generator)
Generate JSON schema for language servers from Ansible module documentation
## Usage
```
$ ansible-schema-generator --help
usage: ansible-schema-generator [-h] [-o OUTPUT_FILE]
[-l {debug,warning,error}] [-d DESCRIPTION]
[-t TITLE] [-v VERSION] [-a ARGSPEC_PATH]
[-r REPORT_FILE]
target_pathGenerate JSON schema for language servers from Ansible module documentation in
an Ansible repository checkout `target_path`positional arguments:
target_path scan this directory for Ansible modulesoptional arguments:
-h, --help show this help message and exit
-o OUTPUT_FILE, --output-file OUTPUT_FILE
write result to this file
-l {debug,warning,error}, --log-level {debug,warning,error}
set log level
-d DESCRIPTION, --description DESCRIPTION
Description string to add to the schema
-t TITLE, --title TITLE
Title of the schema
-v VERSION, --version VERSION
Version of Ansible for which schemas are generated
-a ARGSPEC_PATH, --argspec-path ARGSPEC_PATH
File from which we can import `get_argument_spec`
function
-r REPORT_FILE, --report-file REPORT_FILE
write report to this file
```## Examples
Please refer to the `examples/` directory
## License
GNU/GPLv3