0
swaggerでAPIを作成していますが、YAMLを更新して正規表現のパターン要件をパラメーターに追加しようとしています。現在、私は以下を試しています:Swagger UIでスガッガーパターンが機能しない
# 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]+$"
しかし、スワッガーUIは有効な入力として何かを入力させています。どうしてこれなの?