forked from loafle/openapi-generator-original
Fix another batch of spelling typos (#13915)
* Fix typos * Remove repeated words * Minor grammar fixes
This commit is contained in:
@@ -1515,7 +1515,7 @@ void FakeResource::handler_DELETE_internal(const std::shared_ptr<restbed::Sessio
|
||||
|
||||
if (status_code == 400) {
|
||||
responseHeaders.insert(std::make_pair("Content-Type", "text/plain"));
|
||||
result = "Someting wrong";
|
||||
result = "Something wrong";
|
||||
|
||||
returnResponse(session, 400, result.empty() ? "{}" : result, responseHeaders);
|
||||
return;
|
||||
|
||||
@@ -32,7 +32,7 @@ public class TestingHelper {
|
||||
Approvals.verify(message, removeTrailingSpaces);
|
||||
}
|
||||
|
||||
public static void approveResponseAsJson(Object reponseObject) {
|
||||
public static void approveResponseAsJson(Object responseObject) {
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
objectMapper.registerModule(new JavaTimeModule());
|
||||
objectMapper.setDateFormat(new StdDateFormat());
|
||||
@@ -43,7 +43,7 @@ public class TestingHelper {
|
||||
String json = "";
|
||||
|
||||
try {
|
||||
json = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(reponseObject);
|
||||
json = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(responseObject);
|
||||
} catch (JsonProcessingException e) {
|
||||
json = e.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user