Skip to content

Commit 8dab028

Browse files
msnijder30quen2404
authored andcommitted
Needs more Lombok
1 parent 313b110 commit 8dab028

File tree

3 files changed

+7
-97
lines changed

3 files changed

+7
-97
lines changed

src/main/java/com/qdesrame/openapi/diff/compare/OAuthFlowsDiff.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ public Optional<ChangedOAuthFlows> diff(OAuthFlows left, OAuthFlows right) {
2424
ChangedOAuthFlows changedOAuthFlows = new ChangedOAuthFlows(left, right);
2525
if (left != null && right != null) {
2626
openApiDiff
27-
.getoAuthFlowDiff()
27+
.getOAuthFlowDiff()
2828
.diff(left.getImplicit(), right.getImplicit())
2929
.ifPresent(changedOAuthFlows::setChangedImplicitOAuthFlow);
3030
openApiDiff
31-
.getoAuthFlowDiff()
31+
.getOAuthFlowDiff()
3232
.diff(left.getPassword(), right.getPassword())
3333
.ifPresent(changedOAuthFlows::setChangedPasswordOAuthFlow);
3434
openApiDiff
35-
.getoAuthFlowDiff()
35+
.getOAuthFlowDiff()
3636
.diff(left.getClientCredentials(), right.getClientCredentials())
3737
.ifPresent(changedOAuthFlows::setChangedClientCredentialOAuthFlow);
3838
openApiDiff
39-
.getoAuthFlowDiff()
39+
.getOAuthFlowDiff()
4040
.diff(left.getAuthorizationCode(), right.getAuthorizationCode())
4141
.ifPresent(changedOAuthFlows::setChangedAuthorizationCodeOAuthFlow);
4242
}

src/main/java/com/qdesrame/openapi/diff/compare/OpenApiDiff.java

Lines changed: 2 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
import java.util.Map;
1414
import java.util.Optional;
1515
import java.util.stream.Collectors;
16+
import lombok.Getter;
1617
import org.slf4j.Logger;
1718
import org.slf4j.LoggerFactory;
1819

20+
@Getter
1921
public class OpenApiDiff {
2022

2123
public static final String SWAGGER_VERSION_V2 = "2.0";
@@ -173,96 +175,4 @@ private ChangedOpenApi getChangedOpenApi() {
173175
changedOpenApi.setChangedExtensions(changedExtensions);
174176
return changedOpenApi;
175177
}
176-
177-
public PathsDiff getPathsDiff() {
178-
return pathsDiff;
179-
}
180-
181-
public PathDiff getPathDiff() {
182-
return pathDiff;
183-
}
184-
185-
public SchemaDiff getSchemaDiff() {
186-
return schemaDiff;
187-
}
188-
189-
public ContentDiff getContentDiff() {
190-
return contentDiff;
191-
}
192-
193-
public ParametersDiff getParametersDiff() {
194-
return parametersDiff;
195-
}
196-
197-
public ParameterDiff getParameterDiff() {
198-
return parameterDiff;
199-
}
200-
201-
public RequestBodyDiff getRequestBodyDiff() {
202-
return requestBodyDiff;
203-
}
204-
205-
public ResponseDiff getResponseDiff() {
206-
return responseDiff;
207-
}
208-
209-
public HeadersDiff getHeadersDiff() {
210-
return headersDiff;
211-
}
212-
213-
public HeaderDiff getHeaderDiff() {
214-
return headerDiff;
215-
}
216-
217-
public ApiResponseDiff getApiResponseDiff() {
218-
return apiResponseDiff;
219-
}
220-
221-
public OperationDiff getOperationDiff() {
222-
return operationDiff;
223-
}
224-
225-
public SecurityRequirementsDiff getSecurityRequirementsDiff() {
226-
return securityRequirementsDiff;
227-
}
228-
229-
public SecurityRequirementDiff getSecurityRequirementDiff() {
230-
return securityRequirementDiff;
231-
}
232-
233-
public SecuritySchemeDiff getSecuritySchemeDiff() {
234-
return securitySchemeDiff;
235-
}
236-
237-
public OAuthFlowsDiff getoAuthFlowsDiff() {
238-
return oAuthFlowsDiff;
239-
}
240-
241-
public OAuthFlowDiff getoAuthFlowDiff() {
242-
return oAuthFlowDiff;
243-
}
244-
245-
public ExtensionsDiff getExtensionsDiff() {
246-
return extensionsDiff;
247-
}
248-
249-
public OpenAPI getOldSpecOpenApi() {
250-
return oldSpecOpenApi;
251-
}
252-
253-
public OpenAPI getNewSpecOpenApi() {
254-
return newSpecOpenApi;
255-
}
256-
257-
public List<Endpoint> getNewEndpoints() {
258-
return newEndpoints;
259-
}
260-
261-
public List<Endpoint> getMissingEndpoints() {
262-
return missingEndpoints;
263-
}
264-
265-
public List<ChangedOperation> getChangedOperations() {
266-
return changedOperations;
267-
}
268178
}

src/main/java/com/qdesrame/openapi/diff/compare/SecuritySchemeDiff.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected Optional<ChangedSecurityScheme> computeDiff(
8282

8383
case OAUTH2:
8484
openApiDiff
85-
.getoAuthFlowsDiff()
85+
.getOAuthFlowsDiff()
8686
.diff(leftSecurityScheme.getFlows(), rightSecurityScheme.getFlows())
8787
.ifPresent(changedSecurityScheme::setChangedOAuthFlows);
8888
break;

0 commit comments

Comments
 (0)