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

Generated Endpoints Using OpenSearch API Specifications: Phase I #203

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

saimedhi
Copy link
Collaborator

Description

  • Generated Endpoints Using OpenSearch API Specifications: Phase I - First set of endpoints generated, more to follow.

Issues Resolved

Related to #97

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@@ -282,7 +282,7 @@ private function extractUrl(array $paths): string
);
$this->addNamespace('OpenSearch\Common\Exceptions\RuntimeException');
} else {
$params .= sprintf("%s\$%s = \$this->%s ?? null;\n", $tab8, $part, $part);
$params .= sprintf("%s\$%s = \$this->%s ?? null;", $tab8, $part, $part);
Copy link
Collaborator Author

@saimedhi saimedhi Jun 20, 2024

Choose a reason for hiding this comment

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

  • A minor fix is done for the generator here.

  • Apart from that, all other changes are generated using util/GenerateEndpoints.php. Only endpoints with generated code equivalent to the existing code are included in this PR. Endpoints that are not accurately generated will be addressed in follow-up PRs.

@@ -24,6 +24,9 @@
use OpenSearch\Common\Exceptions\RuntimeException;
use OpenSearch\Endpoints\AbstractEndpoint;

/**
* NOTE: This file is autogenerated using util/GenerateEndpoints.php
*/
Copy link
Member

Choose a reason for hiding this comment

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

These should probably go on top of the file before use and have a WARNING not to update by hand with instructions of how to update via generator.

@dblock dblock merged commit debd022 into opensearch-project:main Jun 20, 2024
48 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants