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: evaluate output values before schema checking. #536

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

dblock
Copy link
Member

@dblock dblock commented Aug 27, 2024

Description

Extracted from #524, fixing evaluating output values before schema checking for parameters and payload body. Otherwise if you reuse a value that's not a string type you get a type error during checking.

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.

@dblock dblock added the skip-changelog No need to update CHANGELOG. label Aug 27, 2024
'skipped/semver',
'skipped/distributions/chapters',
'skipped/distributions/excluded',
'skipped/distributions/included'
].map((fixture) => { return load_expected_evaluation(fixture, true) })

expect(actual_evaluations).toStrictEqual(expected_evaluations)
expect(actual_evaluations).toEqual(expected_evaluations)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is because of this:

   @@ -959,11 +959,11 @@
              "title": "DELETE /movies",
            },
          ],
          "prologues": Array [
            Object {
    -         "output": Object {
    +         "output": ChapterOutput {
                "outputs": Object {
                  "boolean": false,
                },
              },
              "overall": Object {

Copy link

github-actions bot commented Aug 27, 2024

Changes Analysis

Commit SHA: 0845299
Comparing To SHA: 19421f5

API Changes

Summary

NO CHANGES

Report

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

API Coverage

Before After Δ
Covered (%) 533 (52.2 %) 533 (52.2 %) 0 (0 %)
Uncovered (%) 488 (47.8 %) 488 (47.8 %) 0 (0 %)
Unknown 26 26 0

Copy link

github-actions bot commented Aug 27, 2024

Spec Test Coverage Analysis

Total Tested
559 356 (63.69 %)

Xtansia
Xtansia previously approved these changes Aug 27, 2024
Signed-off-by: dblock <dblock@amazon.com>
@Xtansia Xtansia merged commit e553ab1 into opensearch-project:main Aug 28, 2024
18 checks passed
@dblock dblock deleted the fix-value-types branch August 28, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No need to update CHANGELOG.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants