Skip to content

Commit

Permalink
fix(python): properly remove existing codegen (#3056)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored May 14, 2024
1 parent 34199fc commit 1c6364c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public class AlgoliaSwiftGenerator extends Swift5ClientCodegen {
"languages",
"matchedgeolocation",
"matchlevel",
"mixedsearchfilters",
"mode",
"numericfilters",
"optionalfilters",
Expand Down
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

apic() {
(cd scripts && NODE_NO_WARNINGS=1 node dist/scripts/cli/index.js $*)
(cd $ROOT/scripts && NODE_NO_WARNINGS=1 node dist/scripts/cli/index.js $*)
}

apicb() {
(cd scripts && yarn build:cli && NODE_NO_WARNINGS=1 node dist/scripts/cli/index.js $*)
(cd $ROOT/scripts && yarn build:cli && NODE_NO_WARNINGS=1 node dist/scripts/cli/index.js $*)
}

export apic
Expand Down
6 changes: 3 additions & 3 deletions scripts/pre-gen/removeExistingCodegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export async function removeExistingCodegen({
clientApi = `${clientName}*.php`;
break;
case 'python':
clientModel = toSnakeCase(clientName);
clientModel = `${toSnakeCase(clientName)}/models`;
clientApi = toSnakeCase(clientName);
baseModelFolder = '';
baseApiFolder = '';
baseModelFolder = 'algoliasearch';
baseApiFolder = 'algoliasearch';
break;
case 'ruby':
clientModel = clientName.toLowerCase();
Expand Down

1 comment on commit 1c6364c

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.