-
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
[BUG] OpenAPI spec validation failed on missing descriptions and name pattern #633
Comments
We have a linter/validator for various parts of the spec, and should add thirdparty validators like this one to https://github.com/opensearch-project/opensearch-api-specification/blob/main/.github/workflows/validate-spec.yml. |
Yeah. I was seeing the great amount of errors when using this kind of spec validator. Those all look legit according to the documentations from OpenAPI 3.1.0. I would like to hear what we plan as well. :) |
The files in
|
One new issue i found is: Ref: opensearch-api-specification/spec/namespaces/_core.yaml Lines 2256 to 2259 in 07e329e
|
What is the bug?
I tried to load the opensearch API spec YAML into a python client openapi-spec-validator.
However, when running the spec validation with python client, it fails on different aspects.
description
as required. https://spec.openapis.org/oas/v3.1.0#fixed-fields-14'^[a-zA-Z0-9._-]+$'
How can one reproduce the bug?
Download the opensearch-api-spec YAML. https://github.com/opensearch-project/opensearch-api-specification/releases/download/main-latest/opensearch-openapi.yaml
Run this python script
Will see error
After manually updating the component description, we would see another error regarding of the component schema name issue such as
info@200/_common:Name
don't match the pattern.What is the expected behavior?
The API spec yaml should be validated by spec validator for OpenAPI 3.1.
What is your host/environment?
MacOS, python 3.9.13
The text was updated successfully, but these errors were encountered: