Commit dd26e40
authored
Fix duplicated mappedModels (#7924)
* fix duplicated mapped models
* replace discriminatorExplicitMappingVerbose with legacyDiscriminatorBehavior in comments
* use mappingName for comparison
* improve template
* fix tests
* update comments
* update ts samples1 parent cf8ea91 commit dd26e40
43 files changed
Lines changed: 75 additions & 83 deletions
File tree
- modules/openapi-generator/src
- main
- java/org/openapitools/codegen
- resources/csharp-netcore
- test/java/org/openapitools/codegen
- java/jaxrs
- ruby
- samples
- client/petstore
- csharp-netcore
- OpenAPIClient-net47/src/Org.OpenAPITools/Model
- OpenAPIClientCore/src/Org.OpenAPITools/Model
- OpenAPIClient/src/Org.OpenAPITools/Model
- typescript-fetch/builds/default-v3.0/models
- server/petstore
- jaxrs-cxf/src/gen/java/org/openapitools/model
- jaxrs-datelib-j8/src/gen/java/org/openapitools/model
- jaxrs-jersey/src/gen/java/org/openapitools/model
- jaxrs-spec-interface/src/gen/java/org/openapitools/model
- jaxrs-spec/src/gen/java/org/openapitools/model
- jaxrs
- jersey1-useTags/src/gen/java/org/openapitools/model
- jersey1/src/gen/java/org/openapitools/model
- jersey2-useTags/src/gen/java/org/openapitools/model
- jersey2/src/gen/java/org/openapitools/model
- spring-mvc-j8-async/src/main/java/org/openapitools/model
- spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model
- spring-mvc-no-nullable/src/main/java/org/openapitools/model
- spring-mvc-spring-pageable/src/main/java/org/openapitools/model
- spring-mvc/src/main/java/org/openapitools/model
- springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model
- springboot-beanvalidation/src/main/java/org/openapitools/model
- springboot-delegate-j8/src/main/java/org/openapitools/model
- springboot-delegate/src/main/java/org/openapitools/model
- springboot-implicitHeaders/src/main/java/org/openapitools/model
- springboot-reactive/src/main/java/org/openapitools/model
- springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model
- springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model
- springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model
- springboot-spring-pageable/src/main/java/org/openapitools/model
- springboot-useoptional/src/main/java/org/openapitools/model
- springboot-virtualan/src/main/java/org/openapitools/virtualan/model
- springboot/src/main/java/org/openapitools/model
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2936 | 2936 | | |
2937 | 2937 | | |
2938 | 2938 | | |
2939 | | - | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
2940 | 2949 | | |
2941 | 2950 | | |
2942 | 2951 | | |
| |||
2954 | 2963 | | |
2955 | 2964 | | |
2956 | 2965 | | |
| 2966 | + | |
2957 | 2967 | | |
2958 | 2968 | | |
2959 | 2969 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 7 | | |
11 | | - | |
| 8 | + | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
| 925 | + | |
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| |||
modules/openapi-generator/src/test/java/org/openapitools/codegen/java/jaxrs/JavaJaxrsBaseTest.java
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | 52 | | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Model/ParentPet.cs
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
0 commit comments