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

Dialog directives: Intent should be nullable in create() method #8

Merged
merged 6 commits into from
Dec 1, 2017

Conversation

fabeat
Copy link
Contributor

@fabeat fabeat commented Nov 30, 2017

The updated Intent is not required for all Dialog directives according to the Amazon documentation. It should therefore be nullable in the create() method.

See Amazon documentation:
https://developer.amazon.com/de/docs/custom-skills/dialog-interface-reference.html#directives

I additionally fixed the JSON serialization of the Intent object (Needed for DialogDirectives with "updatedIntent"). The output JSON now matches the input JSON.


$data['name'] = $this->name;
if (null !== $this->confirmationStatus)
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codestyle is to add the opening brace to the end of line for if or for and not in a new line. if (...) { can you please fix this for all files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

@maxbeckers maxbeckers merged commit bd8528b into maxbeckers:master Dec 1, 2017
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

Successfully merging this pull request may close these issues.

2 participants