我有一個不可能知道的鍵名的對象 - 它們是由用戶創建的。但是我確實知道它們(鍵)要存儲的值,而它們(值)將是ISO字符串。我如何驗證這些值?而且,可選,我如何驗證UKNOWN對象的關鍵點,即: key: Joi.string().min(2).max(25)
我已經嘗試基於穰API文檔內容: Another benefits of using Joi.object([schema]) inst
我正在使用POST動詞創建一個API端點,並且需要一個文件。我宣佈我的終點如下: consumes:
- application/json
- multipart/form-data
# format of the responses to the client (Accepts)
produces:
- application/json
...