Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ public class {{classname}} {
return this;
}

/**
* Customise request specification
*/
public {{classname}} reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}

{{#operations}}
{{#operation}}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ public AnotherFakeApi setJSON(JSON json) {
return this;
}

/**
* Customise request specification
*/
public AnotherFakeApi reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}

/**
* To test special tags
* To test special tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ public FakeApi setJSON(JSON json) {
return this;
}

/**
* Customise request specification
*/
public FakeApi reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}

/**
*
* Test serialization of outer boolean types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ public FakeClassnameTags123Api setJSON(JSON json) {
return this;
}

/**
* Customise request specification
*/
public FakeClassnameTags123Api reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}

/**
* To test class name in snake case
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ public PetApi setJSON(JSON json) {
return this;
}

/**
* Customise request specification
*/
public PetApi reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}

/**
* Add a new pet to the store
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ public StoreApi setJSON(JSON json) {
return this;
}

/**
* Customise request specification
*/
public StoreApi reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}

/**
* Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ public UserApi setJSON(JSON json) {
return this;
}

/**
* Customise request specification
*/
public UserApi reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}

/**
* Create user
* This can only be done by the logged in user.
Expand Down