Git Product home page Git Product logo

Comments (5)

mhoeger avatar mhoeger commented on July 20, 2024 1

@mamaso if you're still checking - can you provide details :) i think you mean camelcasing binding data from the functions host side (Azure/azure-functions-host#2571), and making sure it is done recursively.

from azure-functions-nodejs-worker.

mamaso avatar mamaso commented on July 20, 2024

Yep, the issue is well summarized in Azure/azure-functions-host#2571

I added it here because I thought it made more sense to handle this in the language worker (as it's node specific behavior), rather than special casing it in the host.

One alternate possibility would be to have the camel case handled by the host if there are other languages which would like binding data in camel case form. A language worker describes to the host if it would like camel case or not in the json configuration that Chris whipped up.

from azure-functions-nodejs-worker.

mhoeger avatar mhoeger commented on July 20, 2024

You're the best Matt!! It'd be super nice to have formatting as a part of the language worker contract, but I lean towards your original suggestion of having binding data formatted by each language worker for cases like Python's lowercase_underscores (and for whatever other future languages we support). Thanks again!

from azure-functions-nodejs-worker.

mhoeger avatar mhoeger commented on July 20, 2024

Note: requires corresponding test change in azure-functions-host repo (Azure/azure-functions-host#2571)

from azure-functions-nodejs-worker.

mhoeger avatar mhoeger commented on July 20, 2024

Updated details: the bug was that the keys in context.bindingData were camelCased one layer down but no further.

Before Fix:
context.bindingData.sys.MethodName would be HttpTriggerJS1

After Fix:
context.bindingData.sys.methodName would be HttpTriggerJS1

from azure-functions-nodejs-worker.

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.