Reports spec as valid when other validators do not

Đang mở
#89 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
openapi, python
Lĩnh vực
api, testing-qa

Hướng nghiên cứu

Start with test_validators.py and the test_parameter_default_value_wrong_type_swagger testcase mentioned in the report. Reproduce the case with duplicate 200 responses and trace the validator path that accepts it. Done means a regression test captures the duplicate-response case and the validator reports it as invalid.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I have a spec which this project reports as valid where other validators, such as speccy, do not.

What I've found is that the spec we were using had duplicate entries for a get response of 200. This causes the other validators to throw an error.

I modified the test_parameter_default_value_wrong_type_swagger testcase in test_validators.py to add a duplicate 200 response with a different description and the error was not reported.

Ngôn ngữ chính
Python
Star
409
Fork
73
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-openapi/openapi-spec-validator

Tất cả issue của python-openapi/openapi-spec-validator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.