Skip to content

Change ScriptedMetricAggregate value from true to {} #892

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

Merged
merged 1 commit into from
May 12, 2025

Conversation

lucy66hw
Copy link
Contributor

Description

Change ScriptedMetricAggregate value from true to {}

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.

Copy link
Contributor

Changes Analysis

Commit SHA: bcb386b
Comparing To SHA: 9b4df5b

API Changes

Summary

SUCCESS: No changes found between specifications

Report

The full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/14977650361/artifacts/3107861698

API Coverage

Before After Δ
Covered (%) 663 (64.94 %) 663 (64.94 %) 0 (0 %)
Uncovered (%) 358 (35.06 %) 358 (35.06 %) 0 (0 %)
Unknown 53 53 0

Copy link
Contributor

Spec Test Coverage Analysis

Total Tested
603 601 (99.67 %)

@lucy66hw lucy66hw marked this pull request as ready for review May 12, 2025 16:49
@@ -1268,7 +1268,7 @@ components:
- $ref: '#/components/schemas/AggregateBase'
- type: object
properties:
value: true
value: {}
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious, is this the same as

value
    type: object

, which was what it was before?
image (62)

do we have a preference/standard for which one to use for generic object types?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@karenyrx value isn't necessarily an object, it can also be a float, string etc.
It's of arbitrary type which is why it's unspecified

Copy link
Contributor

Choose a reason for hiding this comment

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

got it, thanks!

@Xtansia Xtansia merged commit bddc88a into opensearch-project:main May 12, 2025
41 checks passed
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.

3 participants