-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fixed schema refs for ml.yaml #489
Fixed schema refs for ml.yaml #489
Conversation
Signed-off-by: Theo Truong <[email protected]>
Changes AnalysisCommit SHA: 3d82522 API ChangesSummary
ReportThe full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10358041600/artifacts/1803416154 API Coverage
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the checker have caught this as additional fields or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like ML tests started failing.
We should create JSON-schemas for the namespace and category files to catch this among others, especially on catching typos and enforcing rules for extensions. |
Yes, you want to take it? #492 The tests here are failing though, so you'll need to add a fix. |
I saw that. I'm on it. |
Feel free to open this one separately and I can take care of it. |
Signed-off-by: Theo Truong <[email protected]>
Signed-off-by: Theo Truong <[email protected]>
Signed-off-by: Theo Truong <[email protected]>
Signed-off-by: Theo Truong <[email protected]>
Spec Test Coverage Analysis
|
Signed-off-by: Theo Truong <[email protected]>
Signed-off-by: Theo Truong <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below.
ml.register_model@200: | ||
content: | ||
application/json: | ||
$ref: '../schemas/ml._common.yaml#/components/schemas/Task' | ||
schema: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not a task? In tests we register a model then wait it the task to complete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The response is not the entire Task object, which is different from get_task
's response. This only returns the task_id for you to check on it later.
The body schemas for some bodies in the
ml
namespace were incorrectly referenced to the content-type instead of their respectiveschema
property.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.