Package ai.shipeasy.admin.model
Class UpdateConfigSchemaRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateConfigSchemaRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateConfigSchemaRequest
extends Object
Body for `PATCH /api/admin/configs/{id}/schema`. Schema-only update — replaces the config's schema and re-validates existing values.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UpdateConfigSchemaRequestCreate an instance of UpdateConfigSchemaRequest given an JSON stringReplacement JSON Schema (draft 2020-12).inthashCode()putSchemaItem(String key, Object schemaItem) voidtoJson()Convert an instance of UpdateConfigSchemaRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_SCHEMA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateConfigSchemaRequest
public UpdateConfigSchemaRequest()
-
-
Method Details
-
schema
-
putSchemaItem
-
getSchema
Replacement JSON Schema (draft 2020-12). Validated against every published value before it lands.- Returns:
- schema
-
setSchema
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UpdateConfigSchemaRequest
-
fromJson
Create an instance of UpdateConfigSchemaRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateConfigSchemaRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateConfigSchemaRequest
-
toJson
Convert an instance of UpdateConfigSchemaRequest to an JSON string- Returns:
- JSON string
-