Class WidgetDataSchemas

java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.v1.utils.WidgetDataSchemas

public class WidgetDataSchemas extends Object
Typed OpenAPI schemas for the data of each widget type (the `widgetData` of POST /widget/{name}), built from the backend's QWidgetData classes, and the discriminated union over them keyed by the data's `type`. A client renders by type, never by sniffing the shape (docs/UI-API-CLIENTS.md).
  • Field Details

  • Constructor Details

    • WidgetDataSchemas

      public WidgetDataSchemas()
  • Method Details

    • schemaName

      public static String schemaName(Class<?> dataClass)
      The component schema name for a widget data class.
    • widgetTypeValues

      public static List<String> widgetTypeValues()
      Every widget type value (as sent in widget metadata and data `type`).
    • componentSchemas

      public static Map<String,Schema> componentSchemas()
      All the component schemas: one per data class, the generic one, and the union (WidgetData).