-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1815 from benjamin-confino/schema-model-3.1-benja…
…min-2 Support summary attribute on Info annotation
- Loading branch information
Showing
13 changed files
with
58 additions
and
2 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ class ConfigExtensionsTest extends JaxRsDataObjectScannerTestBase { | |
private static final String TITLE = "mp.openapi.extensions.smallrye.info.title"; | ||
private static final String VERSION = "mp.openapi.extensions.smallrye.info.version"; | ||
private static final String DESCRIPTION = "mp.openapi.extensions.smallrye.info.description"; | ||
private static final String SUMMARY = "mp.openapi.extensions.smallrye.info.summary"; | ||
private static final String TERMS = "mp.openapi.extensions.smallrye.info.termsOfService"; | ||
private static final String CONTACT_EMAIL = "mp.openapi.extensions.smallrye.info.contact.email"; | ||
private static final String CONTACT_NAME = "mp.openapi.extensions.smallrye.info.contact.name"; | ||
|
@@ -85,10 +86,10 @@ void testSettingJustLicenseName() throws IOException, JSONException { | |
|
||
@Test | ||
void testSettingAllInfo() throws IOException, JSONException { | ||
|
||
System.setProperty(TITLE, "My own awesome REST service"); | ||
System.setProperty(VERSION, "1.2.3"); | ||
System.setProperty(DESCRIPTION, "This service is awesome"); | ||
System.setProperty(SUMMARY, "This summary is rather boring"); | ||
System.setProperty(TERMS, "The terms is also awesome"); | ||
System.setProperty(CONTACT_EMAIL, "[email protected]"); | ||
System.setProperty(CONTACT_NAME, "Phillip Kruger"); | ||
|
@@ -109,6 +110,7 @@ void testSettingAllInfo() throws IOException, JSONException { | |
System.clearProperty(TITLE); | ||
System.clearProperty(VERSION); | ||
System.clearProperty(DESCRIPTION); | ||
System.clearProperty(SUMMARY); | ||
System.clearProperty(TERMS); | ||
System.clearProperty(CONTACT_EMAIL); | ||
System.clearProperty(CONTACT_NAME); | ||
|
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
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
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