pungi/pungi
Lubomír Sedlář f9a6c8418f Add JSON Schema for configuration
The schema is written in Python to reduce duplication. When
configuration is loaded, the validation checks if it's correct and fills
in default values.

There is a custom extension to the schema to report deprecated options.

The config dependencies are implemented as a separate pass. While it's
technically possible to express the dependencies in the schema itself,
the error messages are not very helpful and it makes the schema much
harder to read.

Phases no longer define `config_options`. New options should be added to
the schema. Since the default values are populated automatically during
validation, there is no need to duplicate them into the code.

The `pungi-config-validate` script is updated to use the schema and
report errors even for deeply nested fields.

The dependencies are updated: pungi now depends on `python-jsonschema`
(which is already available in Fedora).

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2016-09-01 10:56:15 +02:00
..
compose_metadata [metadata] Simplify writing media.repo 2016-05-23 18:34:04 +02:00
phases Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
wrappers [scm] Add logging for exporting local files 2016-06-23 08:07:23 +02:00
__init__.py Add full Pungi version to log output 2016-08-16 08:12:40 +02:00
arch.py Initial code merge for Pungi 4.0. 2015-02-10 08:19:34 -05:00
checks.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
compose.py Use label to populate image release 2016-08-25 15:24:36 +02:00
config.py Load multilib configuration from local dir in development 2015-11-27 10:27:43 +01:00
createiso.py [createiso] Use shell script for runroot 2016-08-10 13:39:50 +02:00
gather.py gather: Check if txmbr.isDep is set for conditional deps. 2015-09-10 09:38:09 -04:00
ks.py Initial code merge for Pungi 4.0. 2015-02-10 08:19:34 -05:00
linker.py gather: Implement hashed directories. 2015-07-24 04:40:55 -04:00
media_split.py [media-split] Remove commented-out code 2016-06-01 14:11:56 +02:00
metadata.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
multilib.py Remove ambiguous imports 2016-07-20 13:36:42 +02:00
notifier.py Pungi should log when it tries to publish notifications. 2016-04-27 12:09:57 -04:00
ostree.py Stop using str.format 2016-05-25 13:41:49 +02:00
pathmatch.py Initial code merge for Pungi 4.0. 2015-02-10 08:19:34 -05:00
paths.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
util.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00