Merge lp://qastaging/~sergiusens/snapcraft/validation into lp://qastaging/~snappy-dev/snapcraft/core
Proposed by
Sergio Schvezov
Status: | Merged |
---|---|
Approved by: | Leo Arias |
Approved revision: | 151 |
Merged at revision: | 141 |
Proposed branch: | lp://qastaging/~sergiusens/snapcraft/validation |
Merge into: | lp://qastaging/~snappy-dev/snapcraft/core |
Prerequisite: | lp://qastaging/~sergiusens/snapcraft/meta-all-yaml |
Diff against target: |
551 lines (+394/-9) 9 files modified
debian/control (+3/-1) integration-tests/data/local-plugin/snapcraft.yaml (+1/-0) schema/snapcraft.yaml (+89/-0) setup.py (+5/-2) snapcraft/common.py (+11/-0) snapcraft/dirs.py (+1/-0) snapcraft/tests/__init__.py (+1/-0) snapcraft/tests/test_yaml.py (+251/-6) snapcraft/yaml.py (+32/-0) |
To merge this branch: | bzr merge lp://qastaging/~sergiusens/snapcraft/validation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Lenton (community) | Approve | ||
Leo Arias (community) | Approve | ||
Review via email:
|
Commit message
Initial json schema support
Description of the change
I'm just not sure where to add the tests here, so please advise during the review :-)
To post a comment you must log in.
To test, I think you should encapsulate your additions to the Config.__init__ in a validate method. Then we can pass valid and invalid yamls to it.
Some comments in the diff.