2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.amplipi.internal.model;
15 import java.util.List;
17 import io.swagger.v3.oas.annotations.media.Schema;
19 public class HTTPValidationError {
22 private List<ValidationError> detail = null;
29 public List<ValidationError> getDetail() {
33 public void setDetail(List<ValidationError> detail) {
37 public HTTPValidationError detail(List<ValidationError> detail) {
42 public HTTPValidationError addDetailItem(ValidationError detailItem) {
43 this.detail.add(detailItem);
48 public String toString() {
49 StringBuilder sb = new StringBuilder();
50 sb.append("class HTTPValidationError {\n");
52 sb.append(" detail: ").append(toIndentedString(detail)).append("\n");
58 * Convert the given object to string with each line indented by 4 spaces
59 * (except the first line).
61 private static String toIndentedString(Object o) {
65 return o.toString().replace("\n", "\n ");