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.
  • Field Details

  • Constructor Details

    • UpdateConfigSchemaRequest

      public UpdateConfigSchemaRequest()
  • Method Details

    • schema

      public UpdateConfigSchemaRequest schema(@Nonnull Map<String,Object> schema)
    • putSchemaItem

      public UpdateConfigSchemaRequest putSchemaItem(String key, Object schemaItem)
    • getSchema

      @Nonnull public Map<String,Object> getSchema()
      Replacement JSON Schema (draft 2020-12). Validated against every published value before it lands.
      Returns:
      schema
    • setSchema

      public void setSchema(@Nonnull Map<String,Object> schema)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static UpdateConfigSchemaRequest fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of UpdateConfigSchemaRequest to an JSON string
      Returns:
      JSON string