legal regex doesn't validate

Đang mở
#85 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api, testing-qa

Hướng nghiên cứu

Start by reproducing the pattern ^(?i)one|two|three$ through the validator and compare its handling with the OpenAPI regex format rules. Investigate how the regex format is checked and whether inline case-insensitive flags are permitted. Done means the validator consistently handles this pattern according to the specification and the reported swagger-editor structural error is addressed.

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

Mô tả

pattern: '^(?i)one|two|three$'

The regex does not validate.
(?i) is the issue. It allows case-insensitive pattern match.

It causes this error in swagger-editor:

Structural error at components.schemas.Session.properties.operation.pattern
should match format "regex" format: regex

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.