)]}'
{"doc/source/contributor/vitrage-template-format.rst":[{"author":{"_account_id":21414,"name":"Yujun Zhang","email":"zhang.yujunz@zte.com.cn","username":"yujunz"},"change_message_id":"524631be141da0cfa5b4e1b4def73a813fad9d21","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- *metadata:* Contains general information about the template."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  - *version -* the version of the template format. The default is 1."},{"line_number":45,"context_line":"  - *name -* the name of the template"},{"line_number":46,"context_line":"  - *description -* a brief description of what the template does (optional)"},{"line_number":47,"context_line":"- *definitions:* This section is **mandatory** unless an include section is specified in the template (see below)."}],"source_content_type":"text/x-rst","patch_set":2,"id":"ff82abbf_374479b7","line":44,"updated":"2017-12-01 01:18:47.000000000","message":"So it will be a simple incremental number, e.g. 1-\u003e2-\u003e3-\u003e...","commit_id":"5da94f4ae7a2e5f8728ba7c36eb4ad324c3b0b98"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"48236d81254565611a56dfb710825cb929024337","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"- *metadata:* Contains general information about the template."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"  - *version -* the version of the template format. The default is 1."},{"line_number":45,"context_line":"  - *name -* the name of the template"},{"line_number":46,"context_line":"  - *description -* a brief description of what the template does (optional)"},{"line_number":47,"context_line":"- *definitions:* This section is **mandatory** unless an include section is specified in the template (see below)."}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_319b2573","line":44,"in_reply_to":"ff82abbf_374479b7","updated":"2017-12-03 10:18:38.000000000","message":"I think so, and I believe/hope we won\u0027t have that many. I don\u0027t see a reason for a more complex version number.","commit_id":"5da94f4ae7a2e5f8728ba7c36eb4ad324c3b0b98"}],"vitrage/evaluator/template_validation/content/template_content_validator.py":[{"author":{"_account_id":19134,"name":"Eyal","email":"eyalb1@gmail.com","username":"eyalb"},"change_message_id":"f4b73d196afcb90907f8ca0a1c449f4f1027377f","unresolved":false,"context_lines":[{"line_number":438,"context_line":"def _validate_version(template):"},{"line_number":439,"context_line":"    metadata \u003d template.get(TemplateFields.METADATA)"},{"line_number":440,"context_line":""},{"line_number":441,"context_line":"    if metadata is not None:"},{"line_number":442,"context_line":"        version \u003d metadata.get(TemplateFields.VERSION, DEFAULT_VERSION)"},{"line_number":443,"context_line":"        if version in SUPPORTED_VERSIONS:"},{"line_number":444,"context_line":"            return get_content_correct_result()"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_8eff6c66","line":441,"range":{"start_line":441,"start_character":4,"end_line":441,"end_character":28},"updated":"2017-12-03 06:48:24.000000000","message":"what if metadata is None\nthen None is returned and you will have an exception in \nresult.is_valid_config","commit_id":"5da94f4ae7a2e5f8728ba7c36eb4ad324c3b0b98"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"48236d81254565611a56dfb710825cb929024337","unresolved":false,"context_lines":[{"line_number":438,"context_line":"def _validate_version(template):"},{"line_number":439,"context_line":"    metadata \u003d template.get(TemplateFields.METADATA)"},{"line_number":440,"context_line":""},{"line_number":441,"context_line":"    if metadata is not None:"},{"line_number":442,"context_line":"        version \u003d metadata.get(TemplateFields.VERSION, DEFAULT_VERSION)"},{"line_number":443,"context_line":"        if version in SUPPORTED_VERSIONS:"},{"line_number":444,"context_line":"            return get_content_correct_result()"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_d1899926","line":441,"range":{"start_line":441,"start_character":4,"end_line":441,"end_character":28},"in_reply_to":"df87a7cf_8eff6c66","updated":"2017-12-03 10:18:38.000000000","message":"Done","commit_id":"5da94f4ae7a2e5f8728ba7c36eb4ad324c3b0b98"}],"vitrage/evaluator/template_validation/template_syntax_validator.py":[{"author":{"_account_id":19134,"name":"Eyal","email":"eyalb1@gmail.com","username":"eyalb"},"change_message_id":"f4b73d196afcb90907f8ca0a1c449f4f1027377f","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    any_str \u003d Any(str, six.text_type)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    schema \u003d Schema({"},{"line_number":118,"context_line":"        TemplateFields.VERSION: any_str,"},{"line_number":119,"context_line":"        Required(TemplateFields.NAME, msg\u003d60): any_str,"},{"line_number":120,"context_line":"        TemplateFields.DESCRIPTION: any_str"},{"line_number":121,"context_line":"    })"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_ae04b07c","line":118,"range":{"start_line":118,"start_character":32,"end_line":118,"end_character":39},"updated":"2017-12-03 06:48:24.000000000","message":"shouldn\u0027t it be a number ?","commit_id":"5da94f4ae7a2e5f8728ba7c36eb4ad324c3b0b98"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"48236d81254565611a56dfb710825cb929024337","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    any_str \u003d Any(str, six.text_type)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    schema \u003d Schema({"},{"line_number":118,"context_line":"        TemplateFields.VERSION: any_str,"},{"line_number":119,"context_line":"        Required(TemplateFields.NAME, msg\u003d60): any_str,"},{"line_number":120,"context_line":"        TemplateFields.DESCRIPTION: any_str"},{"line_number":121,"context_line":"    })"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_f18e1d2d","line":118,"range":{"start_line":118,"start_character":32,"end_line":118,"end_character":39},"in_reply_to":"df87a7cf_ae04b07c","updated":"2017-12-03 10:18:38.000000000","message":"The way we load yaml files, everything is converted to a string. Since I\u0027m checking the SUPPORTED_VERSIONS anyhow, I think it is not necessary to verify that the version is an integer.","commit_id":"5da94f4ae7a2e5f8728ba7c36eb4ad324c3b0b98"}]}
