Skip to content

Commit

Permalink
docs(#130): enum.adoc에 FormType.Category 추가 - enum.adoc에 원서 카테고리를 추가했…
Browse files Browse the repository at this point in the history
…어요enum.adoc에 FormType.Category 추가 - enum.adoc에 원서 카테고리를 추가했어요
  • Loading branch information
cabbage16 committed Sep 8, 2024
1 parent ee2ea32 commit f8bb573
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/docs/asciidoc/enum.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ include::{snippets}/enum-controller-test/enums/custom-response-fields-formStatus
[[form-type]]
include::{snippets}/enum-controller-test/enums/custom-response-fields-formType.adoc[]

[[form-category]]
include::{snippets}/enum-controller-test/enums/custom-response-fields-formCategory.adoc[]

[[gender]]
include::{snippets}/enum-controller-test/enums/custom-response-fields-gender.adoc[]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ void enums() throws Exception {
attributes(key("title").value("FormType")),
enumConvertFieldDescriptor((enumDocs.getFormType()))
),
customResponseFields("custom-response",
beneathPath("formCategory").withSubsectionId("formCategory"),
attributes(key("title").value("FormCategory")),
enumConvertFieldDescriptor((enumDocs.getFormCategory()))
),
customResponseFields("custom-response",
beneathPath("gender").withSubsectionId("gender"),
attributes(key("title").value("Gender")),
Expand Down Expand Up @@ -111,7 +116,7 @@ private static FieldDescriptor[] enumConvertFieldDescriptor(Map<String, String>
private EnumDocs getData(MvcResult result) throws IOException {
return objectMapper
.readValue(result.getResponse().getContentAsByteArray(),
new TypeReference<EnumDocs>() {
new TypeReference<>() {
}
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class EnumDocs {
Map<String, String> certificate;
Map<String, String> formStatus;
Map<String, String> formType;
Map<String, String> formCategory;
Map<String, String> gender;
Map<String, String> graduationType;
Map<String, String> fairStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public EnumDocs findEnums() {
.certificate(getDocs(Certificate.values()))
.formStatus(getDocs(FormStatus.values()))
.formType(getDocs(FormType.values()))
.formCategory(getDocs(FormType.Category.values()))
.gender(getDocs(Gender.values()))
.graduationType(getDocs(GraduationType.values()))
.fairStatus(getDocs(FairStatus.values()))
Expand Down

0 comments on commit f8bb573

Please sign in to comment.