-
Notifications
You must be signed in to change notification settings - Fork 21
style(generator): format on the CI APIC-415 #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
36af3cb
style(generator): format on the CI
millotp 4363aa1
test on ci
millotp 433fada
Merge branch 'main' into chore/format-generators
millotp 4d8b62b
need cache
millotp c827974
cache need java
millotp 4bd8c22
Merge branch 'main' into chore/format-generators
millotp 817f362
oops
millotp 768373d
remove job
millotp 5b95839
good format
millotp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
18 changes: 12 additions & 6 deletions
18
generators/src/main/java/com/algolia/codegen/AlgoliaPhpGenerator.java
This file contains hidden or 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 |
---|---|---|
@@ -1,21 +1,27 @@ | ||
package com.algolia.codegen; | ||
|
||
import io.swagger.v3.oas.models.Operation; | ||
import io.swagger.v3.oas.models.servers.Server; | ||
import java.util.List; | ||
|
||
import org.openapitools.codegen.CodegenOperation; | ||
import org.openapitools.codegen.languages.PhpClientCodegen; | ||
|
||
import io.swagger.v3.oas.models.Operation; | ||
import io.swagger.v3.oas.models.servers.Server; | ||
|
||
public class AlgoliaPhpGenerator extends PhpClientCodegen { | ||
|
||
@Override | ||
public String getName() { | ||
return "algolia-php"; | ||
} | ||
|
||
@Override | ||
public CodegenOperation fromOperation(String path, String httpMethod, Operation operation, List<Server> servers) { | ||
return Utils.specifyCustomRequest(super.fromOperation(path, httpMethod, operation, servers)); | ||
public CodegenOperation fromOperation( | ||
String path, | ||
String httpMethod, | ||
Operation operation, | ||
List<Server> servers | ||
) { | ||
return Utils.specifyCustomRequest( | ||
super.fromOperation(path, httpMethod, operation, servers) | ||
); | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
generators/src/main/java/com/algolia/codegen/GenerationException.java
This file contains hidden or 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
package com.algolia.codegen; | ||
|
||
public class GenerationException extends Exception { | ||
public GenerationException(String message) { | ||
super(message); | ||
} | ||
|
||
public GenerationException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be the ultimate step of this job, with the same thing we do for the CTS
So we know what's the diff and can debug, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it's not something you can debug by hand file by file I don't think it matters, the only solution is to run the provided command, which will affect every files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment was more about splitting logic but anyway it's not a big deal here, I'm fine with that