這是模式定義。Swagger錯誤JSON模式對象的確定版本
serviceArea: [{
states: [{
type: String
}],
districts: [{
type: String
}],
cities: [{
type: String
}]
}]
這是招搖的定義。
serviceArea:
- states:
- type: String
districts:
- type: String
cities:
- type: String
我收到上述錯誤。請幫忙。提前致謝。 這是瀏覽器中的搖擺樂編輯器。
這不是一個有效的Swagger規範。你的serviceArea對象應該如何在請求/響應中看起來像? – Helen
我已經在上面提到過了。 –
我認爲數據類型是小寫的,例如字符串而不是字符串,檢查一個例子並重新格式化 – Serge