Skip to content

Commit

Permalink
fix(clients): move the license to the root (#3457)
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
millotp and shortcuts authored Aug 5, 2024
1 parent fb98304 commit b4742be
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 256 deletions.
21 changes: 0 additions & 21 deletions clients/algoliasearch-client-csharp/algoliasearch/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/abtesting/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/analytics/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/ingestion/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/insights/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/monitoring/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/personalization/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/query-suggestions/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/recommend/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/search/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-go/algolia/usage/LICENSE

This file was deleted.

21 changes: 0 additions & 21 deletions clients/algoliasearch-client-python/algoliasearch/LICENSE

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void processOpts() {
supportingFiles.add(new SupportingFile("globaljson.mustache", "../", "global.json"));
supportingFiles.add(new SupportingFile("netcore_project.mustache", "Algolia.Search.csproj"));
supportingFiles.add(new SupportingFile("Configuration.mustache", "Clients", packageName + "Configuration.cs"));
supportingFiles.add(new SupportingFile("LICENSE", "", "LICENSE"));
supportingFiles.add(new SupportingFile("LICENSE", "../", "LICENSE"));

reservedWords.removeIf(word -> word.equals("Configuration"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void processOpts() {
supportingFiles.clear();
supportingFiles.add(new SupportingFile("configuration.mustache", "", "configuration.go"));
supportingFiles.add(new SupportingFile("client.mustache", "", "client.go"));
supportingFiles.add(new SupportingFile("LICENSE", "", "LICENSE"));
supportingFiles.add(new SupportingFile("LICENSE", "../../", "LICENSE"));

try {
additionalProperties.put("packageVersion", Helpers.getClientConfigField("go", "packageVersion"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void processOpts() {
supportingFiles.add(new SupportingFile("__init__.mustache", packageName + "/models", "__init__.py"));
supportingFiles.add(new SupportingFile("__init__.mustache", "http", "__init__.py"));
supportingFiles.add(new SupportingFile("config.mustache", packageName, "config.py"));
supportingFiles.add(new SupportingFile("LICENSE", "", "LICENSE"));
supportingFiles.add(new SupportingFile("LICENSE", "../", "LICENSE"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public static void removeOrphans(CodegenConfig config, OperationsMap operations,
// - the parameters of an operation

ModelPruner modelPruner = new ModelPruner(convertToMap(config, allModels));
Helpers.prettyPrint(modelPruner.models.keySet());
modelPruner.exploreGraph(operations);

List<String> toRemove = new ArrayList<>();
Expand Down

0 comments on commit b4742be

Please sign in to comment.