-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix(spec): better filters type #413
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
generators/src/main/java/com/algolia/codegen/cts/ParametersWithDataType.java
Outdated
Show resolved
Hide resolved
af5b014
to
0707ba0
Compare
0707ba0
to
d2d08d8
Compare
// Somehow this is not yet enough | ||
if (oneOf != null && !oneOf.isEmpty()) { | ||
return oneOf.get(0); | ||
} |
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 takes the first item of the list, it's not correct but allow the CI to work for now
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.
nice ! closer to the true API !
generators/src/main/java/com/algolia/codegen/cts/ParametersWithDataType.java
Outdated
Show resolved
Hide resolved
@@ -466,7 +494,18 @@ private IJsonSchemaValidationProperties findMatchingOneOf( | |||
return bestOneOf; | |||
} | |||
if (param instanceof List) { | |||
// no idea for list | |||
// NICE ---> no idea for list <--- NICE |
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.
sorry for this, I'll right better error exception next time
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.
Nah actually I like this way of thinking!!
tests/CTS/methods/requests/templates/java/maybeConvertOneOf.mustache
Outdated
Show resolved
Hide resolved
.github/workflows/check.yml
Outdated
@@ -222,7 +222,7 @@ jobs: | |||
with: | |||
path: | | |||
${{ format('{0}/algoliasearch-core/src/com/algolia/api/{1}.java', matrix.client.path, matrix.client.api) }} | |||
${{ format('{0}/algoliasearch-core/src/com/algolia/model/{1}/**', matrix.client.path, matrix.client.capitalizedName) }} | |||
${{ format('{0}/algoliasearch-core/src/com/algolia/model/{1}/**', matrix.client.path, matrix.client.name) }} |
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.
it's not name, it's camelCase, not sure it's available
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.
Ahhh yes good catch I did not thought of the querySuggestions ones for example
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.
* | ||
* `search-client`, `javascript` -> `searchClient`. | ||
*/ | ||
export function createClientName(client: string, language: string): string { |
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.
much cleaner like that 👍
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.
😊
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.
(hopefully it works now D:)
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.
except the cache got skipped ahah
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.
Ah yes it ran just before ._. oh god
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.
Ah no it's good!!!
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.
Do I need to change something on my PHP test branch ? :o
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.
Not yet but you should merge first, there's still an issue with the CI for Java, I'll come back to it 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.
Youpi let's go ! 💯
Hmm the deleted files are still not pushed................... |
You can do it in another PR, this one is already packed ahah |
Yup I won't do it in this one, just testing locally why |
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-345
closes #177
Changes included:
filters
related options typessearchParams
missing options and types(idk what happened with #227, but it was closed after rebase/force pushing)
🧪 Test
CI :D