swagger-js
swagger-js copied to clipboard
Javascript library to connect to swagger-enabled APIs via browser or nodejs
`securityDef ` is returning undefined because get function is not able to look through nested object. Although the spec included the security definition `get` functioned failed to look for `securitySchemes`...
- OS: Edition: Windows 11 Pro - OS build: 22000.434 - Environment: NodeJS v14.18.1, NPM 8.1.0 - Method of installation: git clone - Swagger-Client version: 3.18.3 ### Content & configuration...
https://github.com/swagger-api/swagger-js/blob/3937607d80879c4627a780e7b3a94c1c13ebed48/src/http/index.js#L4-L5 ```js // Native pick const { a, c } = object; const result = { a, c }; // native is fn typeof x === 'function' ``` https://github.com/swagger-api/swagger-js/blob/22da4ad9bbe9ea742ad8a20b15f7c10160bb3043/src/execute/oas3/build-request.js#L3-L4 ```js...
### Q&A (please complete the following information) - OS: WIn10 - Environment: Node.js v10.8.0 - Method of installation: npm - Swagger-Client version: 3.8.23 - Swagger/OpenAPI version: Swagger 2.0 ### Content...
Node.js world has moved to native ESM support some time ago. Wee need to get on this train to be able to used ESM or CommonJS packages. If we maintain...
`node-fetch@3` is out for some it. Unfortunately it's pure ESM so we cannot use it. We need to convert this library to ESM to use it (https://github.com/swagger-api/swagger-js/issues/2414).
Can't import swagger client in deno (https://deno.com) from current npm publish. Any chance to get swagger-js deploy to deno?
# Q&A (please complete the following information) - OS: Windows 10 - Environment: Node.js v13.4.0 - Method of installation: npm - Swagger-Client version: 3.10.8 - Swagger/OpenAPI version: OpenAPI 3.0 ###...
https://github.com/swagger-api/swagger-js/blob/ba0db610cfbd6b716206e2eefe8b46760606b30c/src/index.js#L86-L102
### Content & configuration https://editor.swagger.io/?url=https://gist.githubusercontent.com/mathis-m/262703ffd14ac670366e603d0143943f/raw/4d4d7f3f5a5ba27c9880344976d7297e600588ce/tm8jDkQ5Cq.txt Swagger/OpenAPI definition: ```yaml openapi: 3.0.0 info: title: asd version: "123" paths: /: post: parameters: - in: header name: limit schema: type: integer maximum: 50 examples:...