-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust query parameter test to expect new query parameter formatting
- Loading branch information
Showing
3 changed files
with
40 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.github.swagger2markup; | ||
|
||
/** | ||
* swagger2markup (c) Duco Hosting | ||
* Created by cas on 02-Oct-17. | ||
*/ | ||
public enum ExampleType { | ||
QUERY, | ||
POST, | ||
HEADER, | ||
PATH, | ||
BODY, | ||
OTHER | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/io/github/swagger2markup/internal/utils/Example.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,25 @@ | ||
package io.github.swagger2markup.internal.utils; | ||
|
||
import io.github.swagger2markup.ExampleType; | ||
|
||
/** | ||
* swagger2markup (c) Duco Hosting | ||
* Created by cas on 02-Oct-17. | ||
*/ | ||
public class Example { | ||
private ExampleType type; | ||
private Object example; | ||
|
||
public Example(ExampleType type, Object example) { | ||
this.type = type; | ||
this.example = example; | ||
} | ||
|
||
public ExampleType getType() { | ||
return type; | ||
} | ||
|
||
public Object getExample() { | ||
return example; | ||
} | ||
} |
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