Skip to content

Commit

Permalink
Adjust query parameter test to expect new query parameter formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cascer1 committed Oct 2, 2017
1 parent 2d8f46f commit 8f16457
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/main/java/io/github/swagger2markup/ExampleType.java
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 src/main/java/io/github/swagger2markup/internal/utils/Example.java
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ __required__|Status values that need to be considered for filter|< enum (availab

===== Request path
----
/pet/findByStatus?status=string
/pet/findByStatus
----


Expand Down

0 comments on commit 8f16457

Please sign in to comment.