Author name: Manuel Bogner

REST & JSON basics

For REST https://restfulapi.net/resource-naming/ is a very good source to start reading and a guideline for JSON can be found under https://google.github.io/styleguide/jsoncstyleguide.xml.

ArrayIndexOutOfBounds with Kotlin coroutines and Hibernate-Validator

I was trying to build a spring boot application based on spring spring-boot-starter-webflux which is based on kotlinx-coroutines-reactor. The API definition was done with OpenAPI-Generator with “kotlin-spring” generator and “spring-boot” library. Setting the configOptions useBeanValidation and reactive to true generates suspendable methods and uses webflux. And adding hibernate-validator allows to use bean validation for every …

ArrayIndexOutOfBounds with Kotlin coroutines and Hibernate-Validator Read More »

Delegate value initialisation with “by lazy” in Kotlin

Using unmodifiable variables – so called values in Kotlin with keyword val – should be the default where possible but it’s not always practical to initialise all values within the constructor. Kotlin offers the option to use “by lazy”. With some common kinds of properties, even though you can implement them manually every time you …

Delegate value initialisation with “by lazy” in Kotlin Read More »