cashapp / misk

Microservice Kontainer
https://cashapp.github.io/misk/
391 stars 166 forks source link

Add (optional) annotations to Field in MiskWebFormBuilder to expose W… #3275

Closed brunofrts closed 1 month ago

brunofrts commented 1 month ago

…ire custom options. This PR

  1. adds (optional) annotations to the Field data class
  2. implements annotation extraction in calculateTypes
  3. regenerates the (Kotlin) Wire classes (Shipment etc) that are used by the calculateTypes tests, and adds custom options to tests.

Note we use Kotlin properties in calculateTypes (instead of the original backing java fields) as Wire compiles custom options into (Kotlin) property annotations, and not field annotations.