0
swagger로 API를 만들고 있는데 YAML을 업데이트하여 정규식 패턴 요구 사항을 매개 변수에 추가하려고합니다. 현재 다음을 시도하고 있습니다.Swagger UI에서 Swagger 패턴이 작동하지 않습니다.
# getCPIStatesForCountry endpoint
/getCPIStatesForCountry:
# This is a HTTP operation
get:
# Describe this verb here. Note: you can use markdown
description: |
Returns a list of states for a given country
produces:
- application/json
# This is array of GET operation parameters:
parameters:
-
name: country_code
in: query
description: Code of desired country
required: true
type: string
pattern: "^[a-zA-Z]+$"
그러나 Swagger UI에서는 유효한 입력으로 아무 것도 입력 할 수 없습니다. 왜 이런거야?