question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Javalin 3.0 suggestions and feature request

See original GitHub issue

Feel free to discuss Javalin 3.0 in this issue.

Please create new issues if you have specific requests.

The current milestone (roadmap) can be seen here: https://github.com/tipsy/javalin/milestone/7

Current changelog: https://github.com/tipsy/javalin/compare/dbf20902ebe2e0d3d0a3f0a2d1545fca3d59ac45...HEAD

Javalin 2.8.X will receive security updates when 3.0 is out, but no new features.

Alpha/beta builds available at: https://javalin.io/future/documentation

Progress

Misc

  • Rewrite configuration setup
  • Remove old validation methods and simplify Validator classes
  • Make routing case sensitive
  • Let FileRenderer throw exception
  • Add config option: asyncRequestTimeout
  • Add config option: enforceSsl
  • Rework event system
  • Rework package structure
  • Consider publishing a javalin-servlet separately (rejected)
  • Expose JavalinServlet in a better way
  • OpenAPI/Swagger support

WebSocket

  • Simplify WebSocket API (make all websockets take a WsContext)
  • Add WebSocket AccessManager
  • Add to/from JSON to WebSocket methods
  • Human-readable method names for WebSocket interfaces
  • Add cookies to WsContext
  • Add attributes to WsContext
  • Sync WsContext and Context APIs (use Context proxy)
  • Add wsBefore/wsAfter and wsException

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:37 (14 by maintainers)

github_iconTop GitHub Comments

8reactions
ghostcommented, Mar 27, 2019

Rewriting to be based on Java 8 instead of Kotlin, but still be Kotlin-viable. Under certain circumstances, pulling 5 kotlin related libs, including sdk might not be acceptable. I remember there was discussion about it some time ago and I could see couple valid points there.

Java is the language (IMO) that lacks good framework like Javalin, in Kotlin, there are alternatives. I think (I’m not sure though) that majority of users actually come from Java, and Kotlin users wouldn’t probably even notice it, so …

3reactions
Neztebcommented, Apr 17, 2019

OpenAPI/Swagger spec generation (#254), similar to HTTP4K and SpringFox.

Neither Javalin, Ktor, nor SparkJava support it. Ktor offers codegen (Swagger -> Code), but not the other way around (Code -> Swagger).

In my opinion, codegen isn’t nearly as useful as spec generation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javalin 3.0 suggestions and feature request · Issue #514
Feel free to discuss Javalin 3.0 in this issue. Please create new issues if you have specific requests. The current milestone (roadmap) can...
Read more >
Javalin 3.0.0 released
Introducing Javalin 3.0. Javalin is a very lightweight web framework for Kotlin and Java which supports WebSockets, HTTP2 and async requests ...
Read more >
Archive - v3 documentation - Javalin - A lightweight Java and ...
This allows you to share the map between requests and servers (in case you are running multiple servers behind a load-balancer) ...
Read more >
News - Javalin - A lightweight Java and Kotlin web framework
Javalin - A lightweight Java and Kotlin web framework. Create REST APIs in Java or Kotlin easily.
Read more >
Documentation - A lightweight Java and Kotlin web framework
Javalin - A lightweight Java and Kotlin web framework. Create REST APIs in Java or Kotlin easily.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found