forked from micronaut-projects/micronaut-openapi
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto solve problem schema names conflicts for classes with same name,…
… but with different packages. Fixed micronaut-projects#947
- Loading branch information
Showing
8 changed files
with
270 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
openapi/src/test/groovy/io/micronaut/openapi/test1/Entity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.micronaut.openapi.test1; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public class Entity { | ||
|
||
private final String fieldB; | ||
|
||
public Entity(final String fieldB) { | ||
this.fieldB = fieldB; | ||
} | ||
|
||
public String getFieldB() { | ||
return fieldB; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
openapi/src/test/groovy/io/micronaut/openapi/test1/EntityWithGeneric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.micronaut.openapi.test1; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public class EntityWithGeneric<T> { | ||
|
||
private final T fieldB; | ||
|
||
public EntityWithGeneric(final T fieldB) { | ||
this.fieldB = fieldB; | ||
} | ||
|
||
public T getFieldB() { | ||
return fieldB; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
openapi/src/test/groovy/io/micronaut/openapi/test2/Entity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.micronaut.openapi.test2; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public class Entity { | ||
|
||
private final String fieldA; | ||
|
||
public Entity(final String fieldA) { | ||
this.fieldA = fieldA; | ||
} | ||
|
||
public String getFieldA() { | ||
return fieldA; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
openapi/src/test/groovy/io/micronaut/openapi/test2/EntityWithGeneric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.micronaut.openapi.test2; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public class EntityWithGeneric<T, R> { | ||
|
||
private final T fieldA; | ||
|
||
public EntityWithGeneric(final T fieldA) { | ||
this.fieldA = fieldA; | ||
} | ||
|
||
public T getFieldA() { | ||
return fieldA; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
openapi/src/test/groovy/io/micronaut/openapi/test3/Entity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.micronaut.openapi.test3; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public class Entity { | ||
|
||
private final String fieldC; | ||
|
||
public Entity(final String fieldC) { | ||
this.fieldC = fieldC; | ||
} | ||
|
||
public String getFieldC() { | ||
return fieldC; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
openapi/src/test/groovy/io/micronaut/openapi/test3/EntityWithGeneric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.micronaut.openapi.test3; | ||
|
||
import io.micronaut.core.annotation.Introspected; | ||
|
||
@Introspected | ||
public class EntityWithGeneric<T, R> { | ||
|
||
private final T fieldC; | ||
|
||
public EntityWithGeneric(final T fieldC) { | ||
this.fieldC = fieldC; | ||
} | ||
|
||
public T getFieldC() { | ||
return fieldC; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters