-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #105
- Loading branch information
Showing
10 changed files
with
95 additions
and
18 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...r-for-spring-test/src/test/java/de/qaware/openapigeneratorforspring/test/app55/App55.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,11 @@ | ||
package de.qaware.openapigeneratorforspring.test.app55; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
class App55 { | ||
public static void main(String[] args) { | ||
SpringApplication.run(App55.class, args); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ng-test/src/test/java/de/qaware/openapigeneratorforspring/test/app55/App55Controller.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,19 @@ | ||
package de.qaware.openapigeneratorforspring.test.app55; | ||
|
||
import lombok.Value; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class App55Controller { | ||
|
||
@GetMapping | ||
public SomeDto getJson() { | ||
return new SomeDto("some-value"); | ||
} | ||
|
||
@Value | ||
private static class SomeDto { | ||
String someProperty; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...r-spring-test/src/test/java/de/qaware/openapigeneratorforspring/test/app55/App55Test.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,7 @@ | ||
package de.qaware.openapigeneratorforspring.test.app55; | ||
|
||
import de.qaware.openapigeneratorforspring.test.AbstractOpenApiGeneratorWebMvcIntTest; | ||
|
||
class App55Test extends AbstractOpenApiGeneratorWebMvcIntTest { | ||
|
||
} |
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
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
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
38 changes: 38 additions & 0 deletions
38
openapi-generator-for-spring-test/src/test/resources/openApiJson/app55.json
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,38 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "API for App55", | ||
"version": "unknown" | ||
}, | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"operationId": "getJson", | ||
"responses": { | ||
"200": { | ||
"description": "Default response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/App55Controller.SomeDto" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"App55Controller.SomeDto": { | ||
"type": "object", | ||
"properties": { | ||
"someProperty": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -22,6 +22,6 @@ paths: | |
"200": | ||
description: Default response | ||
content: | ||
'*/*': | ||
application/json: | ||
schema: | ||
type: string |
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
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