capital.scalable.restdocs.constraints.ConstraintReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-auto-restdocs-core Show documentation
Show all versions of spring-auto-restdocs-core Show documentation
Spring Auto REST Docs is an extension to Spring REST Docs
/*-
* #%L
* Spring Auto REST Docs Core
* %%
* Copyright (C) 2015 - 2018 Scalable Capital GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package capital.scalable.restdocs.constraints;
import java.util.List;
import org.springframework.core.MethodParameter;
public interface ConstraintReader {
String CONSTRAINTS_ATTRIBUTE = "constraints";
String OPTIONAL_ATTRIBUTE = "optionals";
String DEPRECATED_ATTRIBUTE = "deprecated";
String DEFAULT_VALUE_ATTRIBUTE = "default-value";
List getConstraintMessages(Class> javaBaseClass, String javaFieldName);
List getConstraintMessages(MethodParameter param);
List getOptionalMessages(Class> javaBaseClass, String javaFieldName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy