Skip to content

Commit 5580a4d

Browse files
authored
Add openapi4s plugin docs (#5553)
Pull request: #5553
1 parent e4741b1 commit 5580a4d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

website/docs/modules/ROOT/pages/extending/thirdparty-plugins.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,35 @@ For more configuration options, building binaries inside Docker, a sample projec
781781
and more, check the project readme.
782782

783783

784+
785+
== OpenApi4s
786+
787+
Mill plugin for OpenApi4s generators.
788+
789+
Project home: https://github.com/sake92/mill-openapi4s
790+
791+
[source,scala,subs="attributes,verbatim"]
792+
----
793+
//| mvnDeps: ["ba.sake::mill-openapi4s::0.7.0"]
794+
795+
import mill.*
796+
import mill.scalalib._
797+
import ba.sake.mill.openapi4s.OpenApiGeneratorModule
798+
799+
object app extends ScalaModule, OpenApiGeneratorModule {
800+
def openApi4sPackage = "com.example.api"
801+
def openApi4sVersion = "0.6.1"
802+
// def openApi4sGenerator = "sharaf" // or "http4s"
803+
----
804+
805+
.Generate source files
806+
[source,console]
807+
----
808+
$ ./mill app.openApi4sGenerate
809+
----
810+
811+
812+
784813
== OSGi
785814

786815
Produce OSGi Bundles with mill.

0 commit comments

Comments
 (0)