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

Missing tag "context" in action.devices.EXECUTE intent #6

Open
alexriva opened this issue Nov 15, 2022 · 0 comments
Open

Missing tag "context" in action.devices.EXECUTE intent #6

alexriva opened this issue Nov 15, 2022 · 0 comments

Comments

@alexriva
Copy link

I have got from Google this payload:

{
    "inputs": [
        {
            "context": {
                "locale_country": "US",
                "locale_language": "en"
            },
            "intent": "action.devices.EXECUTE",
            "payload": {
                "commands": [
                    {
                        "devices": [
                            {
                                "id": "9MX4sq"
                            }
                        ],
                        "execution": [
                            {
                                "command": "action.devices.commands.OnOff",
                                "params": {
                                    "on": true
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ],
    "requestId": "10539151787583144316"
}

When I try to unmarshall with generated java class from json schema I have got the error:

org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "context" (Class com.google.actions.api.smarthome.intents.execute.Input), not marked as ignorable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant