Coder Social home page Coder Social logo

http-openapi's People

Contributors

admira1awesome avatar norguhtar avatar

Watchers

 avatar  avatar  avatar

http-openapi's Issues

Fix validate fileupload

In openapi spec i can set

requestBody:
   content:
      multipart/form-data:
         schema:
           type: object
           properties:
             filename:
               type: string
               format: binary

But when i try post file data got vaildation error

{"filename":{"details":{"error":"invalid","actual":"table","expected":"binary"}}

It strange :)

Add function coveration

For test and migration we need function for check how openapi.yaml converage by function.

Add global security usage

From this spec
https://swagger.io/docs/specification/authentication/bearer-authentication/

If securitySchemes defined and security set global like this

openapi: 3.0.0
...
# 1) Define the security scheme type (HTTP bearer)
components:
  securitySchemes:
    bearerAuth:            # arbitrary name for the security scheme
      type: http
      scheme: bearer
      bearerFormat: JWT    # optional, arbitrary value for documentation purposes
# 2) Apply the security globally to all operations
security:
  - bearerAuth: []         # use the same name as above

use security handler on all paths. If path include local security use local security instead global.

attempt to call method 'set_router' (a nil value)

ERROR:

LuajitError: /var/tarantool/app/.rocks/share/tarantool/gtn/openapi.lua:730: attempt to call method 'set_router' (a nil value)
fatal error, exiting the event loop

./app.lua

_G.app_config = nil
_G.uid = nil
_G.action = nil
local app = openapi(require("http.server"), require("http.router"), "schemas/api.yaml", {debug = false})

I got the error when I running app.lua , any help ? with two version are the same error, my tarantool version is 2.1.3-9-g85ad8508e and the lua version is 5.1.5

thanks in advance,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.