Class UserPreferencesSpecUtils
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.v1.utils.UserPreferencesSpecUtils
Shared contract and JSON handling for core preferences specs.
-
Method Summary
Modifier and TypeMethodDescriptionAction and section names come only from the URL path.static RequestBodyPublish the action body separately from PATCH.static PreferenceActionRequestV1readActionRequest(io.javalin.http.Context context) Preserve unknown properties for core rejection.readRequest(io.javalin.http.Context context) Retain every property for core validation, and reject malformed or non-object JSON.static RequestBodyJSON body referencing the published request schema.schemas()Component schemas for generated clients.Section name comes only from the URL path.static voidwriteResponse(io.javalin.http.Context context, Object output) Keep explicit nulls in the wire representation.
-
Method Details
-
sectionParameters
-
schemas
-
requestBody
JSON body referencing the published request schema. -
readRequest
public static PreferenceSectionPatchRequestV1 readRequest(io.javalin.http.Context context) throws QBadRequestException Retain every property for core validation, and reject malformed or non-object JSON.- Throws:
QBadRequestException
-
writeResponse
Keep explicit nulls in the wire representation. -
actionParameters
-
actionRequestBody
Publish the action body separately from PATCH. -
readActionRequest
public static PreferenceActionRequestV1 readActionRequest(io.javalin.http.Context context) throws QBadRequestException Preserve unknown properties for core rejection.- Throws:
QBadRequestException
-