java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.Problem
Record Components:
type - URI reference identifying the problem type.
title - Short, human-readable summary of the problem type.
status - HTTP status code of the answer.
detail - Human-readable explanation specific to this occurrence.
instance - URI reference identifying this occurrence, usually the request path.
violations - Only for urn:problem:account:invalid-password, the names of the broken password rules.

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2026-11-08T20:21:45.782821081Z[Etc/UTC]", comments="Generator version: 7.27.0") public record Problem(@Valid URI type, String title, Integer status, String detail, @Valid URI instance, List<String> violations) extends Record
RFC 9457 problem details. The type is a URN naming the failure, for example urn:problem:account:rate-limited or urn:problem:client:not-found. Request validation failures use about:blank.
  • Field Details

    • type

      @Valid @Nullable private final @Valid URI type
      The field for the type record component.
    • title

      @Nullable private final String title
      The field for the title record component.
    • status

      @Nullable private final Integer status
      The field for the status record component.
    • detail

      @Nullable private final String detail
      The field for the detail record component.
    • instance

      @Valid @Nullable private final @Valid URI instance
      The field for the instance record component.
    • violations

      @Nullable private final List<String> violations
      The field for the violations record component.
  • Constructor Details

    • Problem

      public Problem(@Valid @Nullable @Valid URI type, @Nullable String title, @Nullable Integer status, @Nullable String detail, @Valid @Nullable @Valid URI instance, @Nullable List<String> violations)
      Creates an instance of a Problem record class.
      Parameters:
      type - the value for the type record component
      title - the value for the title record component
      status - the value for the status record component
      detail - the value for the detail record component
      instance - the value for the instance record component
      violations - the value for the violations record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      @Valid @Nullable public @Valid URI type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • title

      @Nullable public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • status

      @Nullable public Integer status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • detail

      @Nullable public String detail()
      Returns the value of the detail record component.
      Returns:
      the value of the detail record component
    • instance

      @Valid @Nullable public @Valid URI instance()
      Returns the value of the instance record component.
      Returns:
      the value of the instance record component
    • violations

      @Nullable public List<String> violations()
      Returns the value of the violations record component.
      Returns:
      the value of the violations record component