Skip to content
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(javascript): handle parent in models #339

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-413

Changes included:

JavaScript types were not reflecting the additionalProperties option in our specs, which made some of our types incorrect.

🧪 Test

  • CI :D
  • Generated code

@shortcuts shortcuts requested a review from a team April 5, 2022 16:04
@shortcuts shortcuts self-assigned this Apr 5, 2022
@shortcuts shortcuts requested review from eunjae-lee and damcou and removed request for a team April 5, 2022 16:04
@netlify
Copy link

netlify bot commented Apr 5, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 6e7024e
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/624c696b28025e74b0d10296

@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 5, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the generated/main branch.

@shortcuts shortcuts enabled auto-merge (squash) April 5, 2022 16:18
@shortcuts shortcuts disabled auto-merge April 5, 2022 16:18
@shortcuts shortcuts enabled auto-merge (squash) April 5, 2022 16:18
@Override
public String getName() {
return "algolia-javascript";
}

@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(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this made me realize we don't format the generators, I'll add a step in the CI.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep true, I did not understood why it's not done so I've kept it for this file, good idea

@shortcuts shortcuts merged commit b07f5f9 into main Apr 6, 2022
@shortcuts shortcuts deleted the fix/APIC-413/javascript-parent-model branch April 6, 2022 08:55
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Apr 6, 2022
algolia/api-clients-automation#339

Co-authored-by: Clément Vannicatte <20689156+shortcuts@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants