Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chhorz/oas-generator
Build-Time generation of OpenAPI specification files
https://github.com/chhorz/oas-generator
annotation-processor java oas openapi
Last synced: about 1 month ago
JSON representation
Build-Time generation of OpenAPI specification files
- Host: GitHub
- URL: https://github.com/chhorz/oas-generator
- Owner: chhorz
- License: apache-2.0
- Created: 2018-03-11T17:09:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T17:03:27.000Z (7 months ago)
- Last Synced: 2024-04-08T21:18:11.007Z (7 months ago)
- Topics: annotation-processor, java, oas, openapi
- Language: HTML
- Homepage: https://chhorz.github.io/oas-generator/
- Size: 8.27 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.adoc
- Contributing: CONTRIBUTING.adoc
- License: LICENSE.txt
Awesome Lists containing this project
README
= OAS Generator
:author: Christian Horz
:icons: fontimage: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.* OpenAPI Specification 3.1.0 (link:https://spec.openapis.org/oas/v3.1.0[Link])
== 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].