docs/compose/config
Aanand Prasad 527bf3b023 Fix ports validation message
- The `raises` kwarg to the `cls_check` decorator was being used
  incorrectly (it should be an exception class, not an object).

- We need to check for `error.cause` and get the message out of the
  exception object.

NB: The particular case where validation fails in the case of `ports` is
only when ranges don't match in length - no further validation is
currently performed client-side.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-12-03 11:05:05 -08:00
..
__init__.py Move service sorting to config package. 2015-12-02 17:31:48 -08:00
config.py Add integration test and docs for build with a git url. 2015-12-03 11:05:05 -08:00
errors.py Move service sorting to config package. 2015-12-02 17:31:48 -08:00
fields_schema.json Refactor ports section of fields schema 2015-12-03 11:05:05 -08:00
interpolation.py Inclide the filename in validation errors. 2015-11-12 15:02:12 -05:00
service_schema.json Add ids to config schemas 2015-11-12 15:02:12 -05:00
sort_services.py Move service sorting to config package. 2015-12-02 17:31:48 -08:00
types.py Move volume parsing to config.types module 2015-12-02 17:31:48 -08:00
validation.py Fix ports validation message 2015-12-03 11:05:05 -08:00