-
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(specs): fix missing params and types #772
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
1e7152e
to
d66ca98
Compare
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
d66ca98
to
48cd2a1
Compare
9e6535a
to
7a2a716
Compare
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.
nothing to add on the specs, waiting on the codegen :)
clients/algoliasearch-client-php/lib/Model/Search/SchemasQuery.php
Outdated
Show resolved
Hide resolved
@@ -58,5 +58,361 @@ | |||
"forwardToReplicas": "true" | |||
} | |||
} | |||
}, |
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 test !
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.
The generated looks good, one last comment !
- $ref: '#/searchFiltersNestedArrayString' | ||
x-categories: | ||
- Advanced | ||
- $ref: '#/listOfSearchFilters' |
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 too bad that all of those filters are the same type but different object, it means they are not compatible in java just because we want a different description
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.
Yup indeed, but there's also a benefit of doing this is that you call the constructor with the same name of the object you are trying to build, while with a single object it would be something like SearchFilters
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.
Great job !
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-553
Changes included:
There's a lot of spec changes that has been implemented on some clients but not been documented. In this PR, I've took a look at a few of them to find some fixes to apply, but also find some myself.
I'll split the PR if it becomes too big
filters
wrongly typedreRankingApplyFilter
is nullableinsideBoundingBox
can be a stringgetAbTest
missing response fieldConsequencePromote
allow group promotecustomNormalization
inindexSettings
hasPendingMappings
response is incorrectConsequenceQuery
allOf definition is wrongquery
overlap withsearchParams
, which makes type wrong (for at least Java and JavaScript)consequence
should be optionalabtesting
has its own client🧪 Test
CI :D