[英]i'm getting error 500 when i'm trying to perform a function in swagger CodGen
我正在嘗試構建一個 API,我正在使用 swagger 編輯器、swagger gen 和 swagger UI。 我有一個來自 swagger 編輯器的 YAML 文件,我生成了一個 python-flask 服務器,我運行了服務器並且它工作正常,問題出在我的頁面上我有幾個端點當我想嘗試端點時我 ...
[英]i'm getting error 500 when i'm trying to perform a function in swagger CodGen
我正在嘗試構建一個 API,我正在使用 swagger 編輯器、swagger gen 和 swagger UI。 我有一個來自 swagger 編輯器的 YAML 文件,我生成了一個 python-flask 服務器,我運行了服務器並且它工作正常,問題出在我的頁面上我有幾個端點當我想嘗試端點時我 ...
[英]Debugging a swagger codegen error with fastapi generated openapi.json
我正在嘗試使用在線 swagger 編輯器為我的服務生成客戶端。 我用 fastapi 編寫了服務器。 直到幾天前,我才能夠加載我的 openapi.json 並生成客戶端。 我已經對服務器端點進行了一些更改,現在當我嘗試生成客戶端時,瀏覽器上沒有任何反應。 我進入 F12 並看到以下錯誤: 我對 ...
[英]How to generate swagger file to azure Java Functions without springboot
I have Azure Http trigger java Functions works for copy files from one container to another container, generate Sas token etc by using BlobServiceCli ...
[英]using a two dimensional array in swagger php api
我想得到一個獲取請求 http://localhost/api/catalog/product/list?filters[filter14][]=0 但在 swagger 結果只有 如何在 swagger 編輯器中創建二維數組輸入? ...
[英]Why does swagger codegen generates createAll java method name as create_all_using_postIntValue in python instead of create_all_using_post?
通過 CodeGen 生成 swagger 客戶端時,它在方法名稱的末尾附加了 2 位字符。 For Ex: Java rest API HTTP POST /all is generating the method name in python client as create_all_usi ...
[英]Multiple examples for object properties swagger
我正在嘗試為 Object 屬性添加多個示例。 我使用的 Swagger-Ui 和 Editor 版本是 基於OpenAPI doc ,此版本的 swagger UI 和編輯器支持多個示例,但我仍然看到此錯誤: 這就是我在屬性中添加示例的方式: ...
[英]How to use the SEARCH method in OpenAPI?
有沒有人有處理 OpenAPI 中路徑操作的 AcceptVerb(例如“搜索”)的經驗? 它會引發錯誤,因為“搜索”不是 Swagger Editor 接受的可接受的 HTTP 方法。 /dnlds/bwaaccount: summary: Searches for BOSS accoun ...
[英]How to change swagger logo and text in the top bar in django app with drf-yasg?
我正在使用 drf-yasg。 我設法通過執行以下操作來覆蓋模板在模板文件夾中 如何更改頂部欄徽標和文本? 從“Swagger - 由 SMARTBEAR 支持”到“智能計算器” ...
[英]OpenApi add example for request body
Am working with Spring boot and I am using springdoc-openapi-ui to generate spec files using swagger editor The issue Is, Am trying to avoid creating ...
[英]OpenAPi DateTime with timezone information
我正在為 API 創建 OpenApi Doc。 具有帶有時區的 DateTime 信息的模型對象字段。 示例:“2021-12-30T10:00:00+00:00” 預期的輸入日期應為 UTC。 如果我使用格式:“date-time”,則相應生成的示例是“2021-12-30T10:00:00. ...
[英]The documentation generated by open-api-catalog in ORDS get an error when opening in Swagger
open-api-catalog生成的文檔帶來了一些無法在Swagger中打開的錯誤。 瀏覽器控制台中顯示的示例: 重復映射鍵流收集條目之間缺少逗號當我們在 ORDS 中有一個只有GET處理程序的模塊時,文檔在 Swagger 中工作正常。 但是當它定義了兩個或多個POST或PUT處理程序時,我們 ...
[英]How to print a java variable when I check through Swagger-UI
我正在通過 Swagger-UI 測試 API,我需要調試 java 變量(查詢字符串)。 我是 Java 和 swagger 的新手。 我在文件中寫了System.out.print(variable_name) 。 但我不知道它將在哪里打印值。 我檢查了 swagger 的控制台。 但我找不到價 ...
[英]Swagger shows "Failed to fetch" error but works fine in Postman (API gateway)
我是 Swagger 的新手。 我創建了一個 aws API 網關。 當我嘗試使用 swagger 運行它時,我收到此錯誤獲取失敗。 可能的原因: CORS 網絡故障對於 CORS 請求,URL 方案必須是“http”或“https”。 但是當我復制 curl 並將其導入 postman 時,它 ...
[英]Serving Swagger UI and editor using Docker Compose and Traefik
我第一次嘗試同時啟動和使用 Swagger UI 和 Swagger Editor。 我的方法是使用 Docker Compose 定義兩個服務並將它們隱藏在反向代理后面,在本例中為 Traefik。 但是,我的撰寫文件有問題,我無法弄清楚。 有什么建議嗎? 基 ...
[英]OpenAPI 3.0 - Issue describing an object for XML tag in OpenAPI 3.0 (Swagger 3.0) objects that have both attributes and a value
我無法讓 Swagger UI 創建具有屬性和內容(同時具有屬性和值的對象)的適當 XML 標記: 相反,我得到了這個 如果我使用這個模式 或這個 如果我使用這個模式 我嘗試了很多方法來解決這個問題,但沒有運氣 ...
[英]Nested Json response in Swagger
我正在嘗試在 Swagger UI 中編寫一個示例響應,該響應將描述以下 JSON 結構。 下面是我的結構,但我無法使響應看起來像上面那樣 任何建議,將不勝感激。 ...
[英]How to combine two openapi/swagger schemas into one single schema
我在 openapi 文件中有兩個模式: 我希望生成的架構是: 我試過使用 allOf 運算符來組合這樣的: 但這會產生結果作為內部有兩個對象的模式: 哪個是錯誤的...有沒有辦法用一個 object 而不是兩個嵌套對象來實現結果模式? ...
[英]Issue in rendering swagger-editor in react second time
我正在將 swagger-editor 包嵌入到我的 React 應用程序中,當我從 github 獲取 swagger 規范時,第一次它工作正常並完美驗證,但是當我第二次渲染它時,它會拋出如下錯誤,在此錯誤之后它會跳過一些驗證,它真的打敗了目的,因為這個主要目的是驗證規范錯誤。 我知道 swagg ...
[英]how to add other response codes in swagger ui?
我通過在我的 pom.xml 中導入開放 API 依賴項創建了一個 API 規范文檔,但是在生成的 swagger UI 界面中,我的模式僅可用於 200 個響應我是否需要手動添加其他響應或 swagger 可以自動生成它 ...
[英]How to reference response components in OpenAPI?
我正在為我的 API 編寫 OpenAPI 定義。我正在使用components進行響應,但是 Swagger 編輯器在我嘗試引用這些組件時顯示錯誤:responses: - $ref: '#/components/responses/401' - $ref: '#/components/ ...