Comments (3)
can you add a minimal example to reproduce it?
from jooby.
Sorry for the late response.
Here is the example.
package app
import io.jooby.kt.Kooby
import io.jooby.kt.runApp
import io.jooby.netty.NettyServer
import io.jooby.OpenAPIModule
import io.jooby.jackson.JacksonModule
class App: Kooby({
install(NettyServer())
install(OpenAPIModule())
install(JacksonModule())
get("/") {
Foo("Welcome to Jooby!")
}
})
fun main(args: Array<String>) {
runApp(args, ::App)
}
class Foo(val value: String)
from jooby.
@Yushihu finally look into this. There isn't much jooby can do here, but it is easy to fix. Go to your pom.xml find the openapi plugin setup and add the kotlin-reflect dependency:
<plugin>
<groupId>io.jooby</groupId>
<artifactId>jooby-maven-plugin</artifactId>
<version>${jooby.version}</version>
<executions>
<execution>
<goals>
<goal>openapi</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>${kotlin.version}</version>
</dependency>
</dependencies>
</plugin>
I added these lines to jooby-cli for maven kotlin projects.
from jooby.
Related Issues (20)
- Option for Kotlin DSL when generating Gradle project HOT 1
- Get named, optional query param HOT 3
- JTE implementation is broken HOT 1
- Pac4jModule: a way to omit /logout and /callback
- Add type to MessageEncoder HOT 1
- What HTTP client should I use to not block the worker while request is processing? HOT 4
- Support Java 21 for Jooby 1.x HOT 2
- jetty: client certificates missing HOT 1
- Open-api does not parse Avaje BeanScope mvc controllers HOT 1
- decoders not shared to the mounted routes HOT 2
- Support correct mime type for .wasm files HOT 2
- Allow Kotlin suspending functions in error handlers HOT 2
- Reflective Bean Converter and APT (ParamDefinition) have inconsistent Nullable/NonNull logic. HOT 5
- NullPointerException in UndertowChunkedStream
- Reload TLS certificate from disk without server restart HOT 2
- [openapi] @QueryParam witn @NonNull annotation breaks openapi parser
- How to expose Jooby module as Avaje injected bean HOT 1
- File upload concerns HOT 5
- router: support for subdomains on install HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jooby.