diff --git a/spring-restdocs-asciidoctor/src/main/java/org/springframework/restdocs/asciidoctor/package-info.java b/spring-restdocs-asciidoctor/src/main/java/org/springframework/restdocs/asciidoctor/package-info.java new file mode 100644 index 00000000..45e050e7 --- /dev/null +++ b/spring-restdocs-asciidoctor/src/main/java/org/springframework/restdocs/asciidoctor/package-info.java @@ -0,0 +1,20 @@ +/* + * Copyright 2014-2016 the original author or authors. + * + * 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. + */ + +/** + * Spring REST Docs Asciidoctor extensions. + */ +package org.springframework.restdocs.asciidoctor; diff --git a/spring-restdocs-core/src/main/java/org/springframework/restdocs/payload/PayloadDocumentation.java b/spring-restdocs-core/src/main/java/org/springframework/restdocs/payload/PayloadDocumentation.java index 2e1d8ea2..bb6bbbc2 100644 --- a/spring-restdocs-core/src/main/java/org/springframework/restdocs/payload/PayloadDocumentation.java +++ b/spring-restdocs-core/src/main/java/org/springframework/restdocs/payload/PayloadDocumentation.java @@ -381,7 +381,7 @@ public abstract class PayloadDocumentation { */ public static RequestPartFieldsSnippet requestPartFields(String part, Map attributes, FieldDescriptor... descriptors) { - return requestPartFields(part, Arrays.asList(descriptors)); + return requestPartFields(part, attributes, Arrays.asList(descriptors)); } /** @@ -409,7 +409,7 @@ public abstract class PayloadDocumentation { */ public static RequestPartFieldsSnippet requestPartFields(String part, Map attributes, List descriptors) { - return new RequestPartFieldsSnippet(part, descriptors); + return new RequestPartFieldsSnippet(part, descriptors, attributes); } /** @@ -429,7 +429,7 @@ public abstract class PayloadDocumentation { */ public static RequestPartFieldsSnippet relaxedRequestPartFields(String part, Map attributes, FieldDescriptor... descriptors) { - return relaxedRequestPartFields(part, Arrays.asList(descriptors)); + return relaxedRequestPartFields(part, attributes, Arrays.asList(descriptors)); } /** @@ -449,7 +449,7 @@ public abstract class PayloadDocumentation { */ public static RequestPartFieldsSnippet relaxedRequestPartFields(String part, Map attributes, List descriptors) { - return new RequestPartFieldsSnippet(part, descriptors, true); + return new RequestPartFieldsSnippet(part, descriptors, attributes, true); } /**