Coder Social home page Coder Social logo

Comments (14)

jsdevel avatar jsdevel commented on July 17, 2024

Do you have form parser middleware wired up?

from open-api.

phillip-hall avatar phillip-hall commented on July 17, 2024

I have body-parser middleware setup as follows.

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

Hmm. I'll have to do some testing around this. Admittedly, for data isn't entirely tested. Posting JSON in the body is though.

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

In the mean time, if you can submit a PR for a fix it would be greatly appreciated!

from open-api.

phillip-hall avatar phillip-hall commented on July 17, 2024

OK. The issue is in the express-openapi-coercion library. It needs to build a formData coercer.

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

Ahh. Good catch! Sounds like a patch then.

from open-api.

phillip-hall avatar phillip-hall commented on July 17, 2024

How do you do a patch?

Should I issue a PR on the express-openapi-coercion library?

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

Should I issue a PR on the express-openapi-coercion library?

Yes.

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

How do you do a patch?

Once express-openapi-coercion is updated, I'll update package.json for a patch release. That should make your PR available everywhere.

from open-api.

phillip-hall avatar phillip-hall commented on July 17, 2024

OK, PR is on its way.

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

Thanks!

from open-api.

phillip-hall avatar phillip-hall commented on July 17, 2024

@jsdevel Did you see the 2 PR I submitted to the express-openapi-coercion project?
When can they be merged and this project bumped?

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

I didn't! Looking now. I don't think I'm watching that repo (yet).

from open-api.

jsdevel avatar jsdevel commented on July 17, 2024

This was closed with 8d5b26e

from open-api.

Related Issues (20)

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.