https://github.com/fugerit-org/yaml-doc-tool
Documentation tool for yaml (openapi)
https://github.com/fugerit-org/yaml-doc-tool
documentation freemarker java openapi openapi3 snake-yaml yaml
Last synced: 10 months ago
JSON representation
Documentation tool for yaml (openapi)
- Host: GitHub
- URL: https://github.com/fugerit-org/yaml-doc-tool
- Owner: fugerit-org
- License: apache-2.0
- Created: 2022-03-17T19:11:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-18T13:58:45.000Z (about 1 year ago)
- Last Synced: 2025-07-21T13:34:13.842Z (11 months ago)
- Topics: documentation, freemarker, java, openapi, openapi3, snake-yaml, yaml
- Language: Java
- Homepage: https://www.fugerit.org/
- Size: 141 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# yaml-doc-tool
> ⚠️ **Warning:** As of 2025-07-27 this repository is archived and substituted by [openapi-doc-tool](https://github.com/fugerit-org/openapi-doc-tool) (see [fugerit-org/openapi-doc-tool#1](https://github.com/fugerit-org/openapi-doc-tool/issues/1)).
Tool for auto documentation of yaml / openapi
[](CHANGELOG.md)
[](https://mvnrepository.com/artifact/org.fugerit.java/yaml-doc-tool)
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/fugerit-org/fj-universe/blob/main/CODE_OF_CONDUCT.md)
[](https://sonarcloud.io/summary/new_code?id=fugerit-org_yaml-doc-tool)
[](https://sonarcloud.io/summary/new_code?id=fugerit-org_yaml-doc-tool)
[](https://universe.fugerit.org/src/docs/versions/java11.html)
[](https://universe.fugerit.org/src/docs/versions/java11.html)
[](https://universe.fugerit.org/src/docs/versions/maven3_9.html)
## Quickstart (build)
```
mvn clean install -P singlepackage
```
## Quickstart (mode: single):
```
java -jar dist-yaml-doc-tool-*.jar --input-yaml [path-to-openapi] \
--output-file [output-file] \
--language [language] \
--labels-override [path-to-labels-properties]
```
**example :**
```
java -jar dist-yaml-doc-tool-*.jar --input-yaml sample.yaml --output-file sample.pdf --language it
```
**output-file**
currently supported extensions : pdf, xlsx, xml, fo
**language**
currently supported languages : it, en
**labels-overrides**
path to alternate labels properties
currently supported labels are available in : src/main/resources/lang/label.properties
**maven plugin**
A [Maven Plugin](https://github.com/fugerit-org/yaml-doc-maven-plugin) is also available.
## Quickstart (mode: config):
```
java -jar dist-yaml-doc-tool-*.jar --mode [config] \
--config-path [path-to-config] \
--id-catalog [id-catalog-in-config]
```
**config-path**
path to configuration (see [sample](src/test/resources/yaml-doc-config.xml))
**id-catalog**
id of the catalog in config to use
## Quickstart (mode: check-model):
Node : the type to check need to be in classpath.
```
java -jar dist-yaml-doc-tool-*.jar --mode [check-model] \
--input-yaml [path-to-openapi] \
--output-file [output-file] \
--check-type [java type to check] \
--check-schema [openapi schema to check]
--version [model-version]
```
## Model version info (param "version")
### Version 0 - legacy version (up to 1.0.0 excluded)
### Version 1
handling handling of constraints [OpenAPI data types](https://swagger.io/docs/specification/data-models/data-types/)
- minLength
- maxLength
- minimum
- maximum