chhorz / oas-generator

Build-Time generation of OpenAPI specification files
https://chhorz.github.io/oas-generator/
Apache License 2.0
3 stars 1 forks source link
annotation-processor java oas openapi

= OAS Generator :author: Christian Horz :icons: font

image:https://github.com/chhorz/oas-generator/workflows/Java%20CI/badge.svg?branch=master["Java CI",link=https://github.com/chhorz/oas-generator/actions?query=workflow%3A%22Java+CI%22] image:https://img.shields.io/maven-central/v/com.github.chhorz/oas-generator.svg?logo=apachemaven&label=Maven%20Central["Maven Central", link="https://search.maven.org/artifact/com.github.chhorz/oas-generator"]

== About The OAS Generator is a java annotation processor that generates an OpenAPI specification file from the java annotations within the source code. Because the file is generated during compilation, the documentation is always up-to-date and references the current state of the implementation.

== Getting Started . Add the corresponding dependency to your project + [source,xml]

com.github.chhorz oas-generator-{spring-web|jaxrs|schema|asciidoctor} ${oas-generator.version}

. Create a configuration file oas-generator.yml (per default in /src/main/resources). An example can be found in the link:https://chhorz.github.io/oas-generator/docs/current/reference/configuration.html#configuration-file[reference documentation]. . Update the Javadoc comments to match the requirements

== Documentation

The link:https://chhorz.github.io/oas-generator/[documentation] can be found on the separate GitHub Page. The page also includes the link:https://chhorz.github.io/oas-generator/docs/current/releases.html[reference documentation] for all versions.

== Snapshots Snapshots are available from the Sonatype OSS Snapshots repository. To configure the repository for your project to use the latest snapshot versions you have to add the following repository to your maven pom: [source,xml]

ossrh https://oss.sonatype.org/content/repositories/snapshots

== License OAS Generator is Open Source software released under the link:https://www.apache.org/licenses/LICENSE-2.0.txt[Apache 2.0 license].