Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Annotation processor for compile-time OpenAPI & JsonSchema, with out-of-the-box support for Javalin 5.x & 6.x, Swagger & ReDoc

License

NotificationsYou must be signed in to change notification settings

javalin/javalin-openapi

Repository files navigation

Compile-time OpenAPI integration for Javalin 6.x ecosystem.This is a new plugin that replacesold built-in OpenApi module,the API looks quite the same despite some minor changes.

Preview

How to use

Notes

  • Reflection free, does not perform any extra operations at runtime
  • Uses@OpenApi to simplify migration from bundled OpenApi implementation
  • Supports Java 11+ (also 16 and any further releases) and Kotlin (throughKapt)
  • Uses internal WebJar handler that works with/* route out of the box
  • Provides better projection of OpenAPI specification
  • Schema validation through Swagger core module

Other examples

  • Test module -JavalinTest shows how this plugin work in Java codebase using various features
  • Reposilite - real world app using Javalin and OpenApi integration

Repository structure

Universal modules

ModuleDescription
openapi-annotation-processorCompile-time annotation processor, should generate/openapi-plugin/openapi.json resource
openapi-specificationAnnotations & classes used to describe OpenAPI specification
openapi-testExample Javalin application that uses OpenApi plugin in Gradle & Maven

Javalin plugins

PluginDescription
javalin-openapi-pluginLoads/openapi-plugin/openapi.json resource and serves main OpenApi endpoint
javalin-swagger-pluginServes Swagger UI
javalin-redoc-pluginServes ReDoc UI

Branches

BranchJavalin versionOpenApi VersionJava Version
main6.x6.xJDK11
5.x5.x5.xJDK11
4.x4.x1.xJDK8

About

Annotation processor for compile-time OpenAPI & JsonSchema, with out-of-the-box support for Javalin 5.x & 6.x, Swagger & ReDoc

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2025 Movatter.jp