|
1 | 1 | package io.swagger.v3.jaxrs2;
|
2 | 2 |
|
3 | 3 | import com.fasterxml.jackson.databind.ObjectMapper;
|
4 |
| - |
5 | 4 | import io.swagger.v3.core.converter.AnnotatedType;
|
6 | 5 | import io.swagger.v3.core.converter.ModelConverter;
|
7 | 6 | import io.swagger.v3.core.converter.ModelConverterContextImpl;
|
|
15 | 14 | import io.swagger.v3.jaxrs2.matchers.SerializationMatchers;
|
16 | 15 | import io.swagger.v3.jaxrs2.petstore31.PetResource;
|
17 | 16 | import io.swagger.v3.jaxrs2.petstore31.TagResource;
|
18 |
| -import io.swagger.v3.jaxrs2.resources.DefaultResponseResource; |
19 |
| -import io.swagger.v3.jaxrs2.resources.Misc31Resource; |
20 |
| -import io.swagger.v3.jaxrs2.resources.ParameterMaximumValueResource; |
21 |
| -import io.swagger.v3.jaxrs2.resources.ResponseReturnTypeResource; |
22 |
| -import io.swagger.v3.jaxrs2.resources.SchemaAdditionalPropertiesResource; |
23 |
| -import io.swagger.v3.jaxrs2.resources.SchemaPropertiesResource; |
24 |
| -import io.swagger.v3.jaxrs2.resources.SiblingPropResource; |
25 |
| -import io.swagger.v3.jaxrs2.resources.SiblingsResource; |
26 |
| -import io.swagger.v3.jaxrs2.resources.SiblingsResourceRequestBody; |
27 |
| -import io.swagger.v3.jaxrs2.resources.SiblingsResourceRequestBodyMultiple; |
28 |
| -import io.swagger.v3.jaxrs2.resources.SiblingsResourceResponse; |
29 |
| -import io.swagger.v3.jaxrs2.resources.SiblingsResourceSimple; |
30 |
| -import io.swagger.v3.jaxrs2.resources.SingleExampleResource; |
31 | 17 | import io.swagger.v3.jaxrs2.resources.BasicFieldsResource;
|
32 | 18 | import io.swagger.v3.jaxrs2.resources.BookStoreTicket2646;
|
33 | 19 | import io.swagger.v3.jaxrs2.resources.ClassPathParentResource;
|
34 | 20 | import io.swagger.v3.jaxrs2.resources.ClassPathSubResource;
|
35 | 21 | import io.swagger.v3.jaxrs2.resources.CompleteFieldsResource;
|
| 22 | +import io.swagger.v3.jaxrs2.resources.DefaultResponseResource; |
36 | 23 | import io.swagger.v3.jaxrs2.resources.DeprecatedFieldsResource;
|
37 | 24 | import io.swagger.v3.jaxrs2.resources.DuplicatedOperationIdResource;
|
38 | 25 | import io.swagger.v3.jaxrs2.resources.DuplicatedOperationMethodNameResource;
|
39 | 26 | import io.swagger.v3.jaxrs2.resources.DuplicatedSecurityResource;
|
40 | 27 | import io.swagger.v3.jaxrs2.resources.EnhancedResponsesResource;
|
41 | 28 | import io.swagger.v3.jaxrs2.resources.ExternalDocsReference;
|
| 29 | +import io.swagger.v3.jaxrs2.resources.Misc31Resource; |
42 | 30 | import io.swagger.v3.jaxrs2.resources.MyClass;
|
43 | 31 | import io.swagger.v3.jaxrs2.resources.MyOtherClass;
|
| 32 | +import io.swagger.v3.jaxrs2.resources.ParameterMaximumValueResource; |
44 | 33 | import io.swagger.v3.jaxrs2.resources.RefCallbackResource;
|
45 | 34 | import io.swagger.v3.jaxrs2.resources.RefExamplesResource;
|
46 | 35 | import io.swagger.v3.jaxrs2.resources.RefHeaderResource;
|
|
53 | 42 | import io.swagger.v3.jaxrs2.resources.RefSecurityResource;
|
54 | 43 | import io.swagger.v3.jaxrs2.resources.ResourceWithSubResource;
|
55 | 44 | import io.swagger.v3.jaxrs2.resources.ResponseContentWithArrayResource;
|
| 45 | +import io.swagger.v3.jaxrs2.resources.ResponseReturnTypeResource; |
56 | 46 | import io.swagger.v3.jaxrs2.resources.ResponsesResource;
|
| 47 | +import io.swagger.v3.jaxrs2.resources.SchemaAdditionalPropertiesResource; |
| 48 | +import io.swagger.v3.jaxrs2.resources.SchemaPropertiesResource; |
57 | 49 | import io.swagger.v3.jaxrs2.resources.SecurityResource;
|
58 | 50 | import io.swagger.v3.jaxrs2.resources.ServersResource;
|
| 51 | +import io.swagger.v3.jaxrs2.resources.SiblingPropResource; |
| 52 | +import io.swagger.v3.jaxrs2.resources.SiblingsResource; |
| 53 | +import io.swagger.v3.jaxrs2.resources.SiblingsResourceRequestBody; |
| 54 | +import io.swagger.v3.jaxrs2.resources.SiblingsResourceRequestBodyMultiple; |
| 55 | +import io.swagger.v3.jaxrs2.resources.SiblingsResourceResponse; |
| 56 | +import io.swagger.v3.jaxrs2.resources.SiblingsResourceSimple; |
59 | 57 | import io.swagger.v3.jaxrs2.resources.SimpleCallbackResource;
|
60 | 58 | import io.swagger.v3.jaxrs2.resources.SimpleExamplesResource;
|
61 | 59 | import io.swagger.v3.jaxrs2.resources.SimpleMethods;
|
62 | 60 | import io.swagger.v3.jaxrs2.resources.SimpleParameterResource;
|
63 | 61 | import io.swagger.v3.jaxrs2.resources.SimpleRequestBodyResource;
|
64 | 62 | import io.swagger.v3.jaxrs2.resources.SimpleResponsesResource;
|
| 63 | +import io.swagger.v3.jaxrs2.resources.SingleExampleResource; |
65 | 64 | import io.swagger.v3.jaxrs2.resources.SubResourceHead;
|
66 | 65 | import io.swagger.v3.jaxrs2.resources.TagsResource;
|
67 | 66 | import io.swagger.v3.jaxrs2.resources.Test2607;
|
|
143 | 142 | import java.util.Optional;
|
144 | 143 | import java.util.Set;
|
145 | 144 | import java.util.concurrent.CompletableFuture;
|
146 |
| -import java.util.concurrent.CompletionStage; |
147 | 145 | import java.util.concurrent.CopyOnWriteArrayList;
|
148 |
| -import java.util.stream.Collectors; |
149 | 146 |
|
150 | 147 | import static org.testng.Assert.assertEquals;
|
151 | 148 | import static org.testng.Assert.assertFalse;
|
@@ -3985,6 +3982,11 @@ public void testMisc31() {
|
3985 | 3982 | " properties:\n" +
|
3986 | 3983 | " country:\n" +
|
3987 | 3984 | " const: United States\n" +
|
| 3985 | + " CountryEnum:\n" + |
| 3986 | + " type: string\n" + |
| 3987 | + " enum:\n" + |
| 3988 | + " - United States of America\n" + |
| 3989 | + " - Canada\n" + |
3988 | 3990 | " CreditCard:\n" +
|
3989 | 3991 | " properties:\n" +
|
3990 | 3992 | " billingAddress:\n" +
|
|
0 commit comments