Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camelCase Timer Trigger object #188

Closed
mhoeger opened this issue Mar 12, 2019 · 0 comments
Closed

camelCase Timer Trigger object #188

mhoeger opened this issue Mar 12, 2019 · 0 comments
Assignees
Labels

Comments

@mhoeger
Copy link
Contributor

mhoeger commented Mar 12, 2019

In V1, the timer trigger object looked something like this:

{
    isPastDue: bool,
    next: string, // time
    last: string // time
}

In V2, the timer trigger object looks something like this:

{
    IsPastDue: bool,
    Schedule: { ... }
    ScheduleStatus: {
        "Last": string, // time
        "LastUpdated": string, //time
        "Next": string // time
    }
}

In 3.x, we should be sure to camelCase the properties and hopefully address this todo: https://github.com/Azure/azure-functions-host/blob/v1.x/src/WebJobs.Script/Description/Node/NodeFunctionInvoker.cs#L408

In V3:

{
    isPastDue: bool,
    schedule: { ... }
    scheduleStatus: {
        "last": string, // time
        "lastUpdated": string, //time
        "next": string // time
    }
}

TODO: Need to generalize this model rather than hardcode so other extensions can also express their Node.js object model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant