Reject plug/slot definitions at part level #503

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
Contributor

zyga commented May 12, 2016

This patch removes incorrect schema entries that allow arbitrary plug
and slot definitions at a part level. Those definitions are ignored by
snapcraft but can cause potential confusion for users that read the
schema.

Fixes: https://bugs.launchpad.net/snapcraft/+bug/1581166
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com

Reject plug/slot definitions at part level
This patch removes incorrect schema entries that allow arbitrary plug
and slot definitions at a part level. Those definitions are ignored by
snapcraft but can cause potential confusion for users that read the
schema.

Fixes: https://bugs.launchpad.net/snapcraft/+bug/1581166
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Member

kyrofa commented May 12, 2016

Thanks @zyga. Can you please change your commit message to use LP: #<bug> instead of Fixes using the URL?

Member

kyrofa commented May 12, 2016

@zyga mind also adding a regression test? Beyond that this looks good to me, but I'm not sure why this was there initially so I invoke the @sergiusens.

Collaborator

sergiusens commented May 12, 2016

I indeed 👍 this, we discussed it together. But a unit test would be nice; in snapcraft.test_yaml

Collaborator

sergiusens commented May 24, 2016

Closing in favor of #514

@sergiusens sergiusens closed this May 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment