)]}'
{"marconi/queues/api/v1/response.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a4eb6d9bfa0a0eff2381c50206e8979b856d1cdd","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    :returns : expected response schema for list messages by id."},{"line_number":27,"context_line":"    :rtype : dict"},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    schema_message_get_many \u003d {"},{"line_number":30,"context_line":"        \"type\": \"array\","},{"line_number":31,"context_line":"        \"items\": {"},{"line_number":32,"context_line":"            \"type\": \"object\","}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAATn%2F82sM%3D","line":29,"updated":"2013-12-19 15:02:27.000000000","message":"Could we use the same structure we have for the requests?\n\n  schema \u003d {}\n\nhttps://review.openstack.org/#/c/59508/10/marconi/queues/api/v1/request.py","commit_id":"3b2b2d39114c66fb02f59b64d69209553f2e3b24"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"734f17d435854b914ab998bbf05a9dc04254af59","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from marconi.common import api"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class v1(api.Api):"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    \"\"\"Define validation schema for json response.\"\"\""},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAT3%2F%2FruE%3D","line":19,"updated":"2014-01-03 15:17:45.000000000","message":"I think V1 is a bit redundant here since it\u0027s already under the v1/ pacakge. What about using Response / ResponseSchema instead ?\n\nwe\u0027ve the same issue in the request schema patch","commit_id":"cc6d571b58c79b129ad5f7ce84e435362f629685"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"734f17d435854b914ab998bbf05a9dc04254af59","unresolved":false,"context_lines":[{"line_number":37,"context_line":"                        \"ttl\": {"},{"line_number":38,"context_line":"                            \"type\": \"number\","},{"line_number":39,"context_line":"                            \"minimum\": 1,"},{"line_number":40,"context_line":"                            \"maximum\": self.limits.message_ttl_max"},{"line_number":41,"context_line":"                        },"},{"line_number":42,"context_line":"                        \"age\": {"},{"line_number":43,"context_line":"                            \"type\": \"number\","}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAT3%2F%2FruA%3D","line":40,"updated":"2014-01-03 15:17:45.000000000","message":"This is quite interesting. Do we need the same for the request schema?","commit_id":"cc6d571b58c79b129ad5f7ce84e435362f629685"}],"marconi/tests/functional/base.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"492071a27b5f2dd1ae2453609d074d75a55b4bb5","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        \"\"\"Compares the json response with the expected schema"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        :param response: response json returned by the API."},{"line_number":107,"context_line":"        :param expectedSchema: expected schema definition for response."},{"line_number":108,"context_line":"        \"\"\""},{"line_number":109,"context_line":"        try:"},{"line_number":110,"context_line":"            jsonschema.validate(response, expectedSchema)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F9nIc%3D","line":107,"updated":"2013-12-09 17:17:09.000000000","message":"Could you add type annotations for response and expectedSchema here? I suspect they should both be dict, ala\n\n    :type response: dict\n    :type expectedSchema: dict","commit_id":"d1591fb63de2e6c2582f4bc9f7b310cb12ac6494"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"f767424bdffef6a0df7a7d6b53182db9d342c175","unresolved":false,"context_lines":[{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        :param response: dict - response json returned by the API."},{"line_number":107,"context_line":"        :param expectedSchema: dict - expected schema definition for response."},{"line_number":108,"context_line":"        \"\"\""},{"line_number":109,"context_line":"        try:"},{"line_number":110,"context_line":"            jsonschema.validate(response, expectedSchema)"},{"line_number":111,"context_line":"        except jsonschema.ValidationError as message:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAATn%2F9m8U%3D","line":108,"updated":"2013-12-09 17:50:59.000000000","message":"I should\u0027ve been more specific. :x\n\nType annotations look like this: https://github.com/openstack/marconi/blob/master/marconi/queues/storage/base.py#L415\n\nThat way, sphinx can give us awesome developer docs later: http://sphinx-doc.org/domains.html#info-field-lists","commit_id":"7fe409ff7638e3d2c7658ed245e00cf13d1cf192"}],"marconi/tests/functional/response.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"492071a27b5f2dd1ae2453609d074d75a55b4bb5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2013 Rackspace, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F9nHc%3D","line":1,"updated":"2013-12-09 17:17:09.000000000","message":"Could you rename this file to schema.py? I\u0027d love to see this file contain all the schemas used in testing.","commit_id":"d1591fb63de2e6c2582f4bc9f7b310cb12ac6494"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"492071a27b5f2dd1ae2453609d074d75a55b4bb5","unresolved":false,"context_lines":[{"line_number":19,"context_line":"    \"\"\"Returns expected json schema for GET multiple messages by ID"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    :param message_ttl_max : maximum value of message TTL."},{"line_number":22,"context_line":"    :param message_paging_uplimit : maximum number of messages returned."},{"line_number":23,"context_line":"    \"\"\""},{"line_number":24,"context_line":"    schema_message_get_many \u003d {"},{"line_number":25,"context_line":"        \"type\": \"array\","}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F9nIM%3D","line":22,"updated":"2013-12-09 17:17:09.000000000","message":"Type annotations? :)","commit_id":"d1591fb63de2e6c2582f4bc9f7b310cb12ac6494"}],"marconi/tests/functional/schema.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"f767424bdffef6a0df7a7d6b53182db9d342c175","unresolved":false,"context_lines":[{"line_number":22,"context_line":"    :param message_ttl_max : int - maximum value of message TTL."},{"line_number":23,"context_line":"    :param message_paging_uplimit : int - maximum number of messages returned."},{"line_number":24,"context_line":"    :returns : dict - expected response schema for list messages by id. "},{"line_number":25,"context_line":"    \"\"\""},{"line_number":26,"context_line":"    schema_message_get_many \u003d {"},{"line_number":27,"context_line":"        \"type\": \"array\","},{"line_number":28,"context_line":"        \"items\": {"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAATn%2F9m8M%3D","line":25,"updated":"2013-12-09 17:50:59.000000000","message":"Could you update as with the comment in the previous file?","commit_id":"7fe409ff7638e3d2c7658ed245e00cf13d1cf192"}],"tests/functional/wsgi/v1/test_messages.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"e92297ffbc1e08de4eae0bee411eac23d2d801cd","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                \"properties\": {"},{"line_number":37,"context_line":"                    \"href\": {"},{"line_number":38,"context_line":"                        \"type\": \"string\","},{"line_number":39,"context_line":"                        \"pattern\": \"^(/v1/queues/{1}[a-zA-Z0-9_-]{1,64}\""},{"line_number":40,"context_line":"                        \"/messages/{1}[a-zA-Z0-9_-]{1,64})$\""},{"line_number":41,"context_line":"                    },"},{"line_number":42,"context_line":"                    \"ttl\": {"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F9nUw%3D","line":39,"updated":"2013-12-09 16:43:32.000000000","message":"The {1} following /v1/queues is redundant - this is the default behavior in regex. Could you remove it? The same goes for the {1} following /messages/.\n\nWe should relax the form of the message identifier matchers, since we only happen to use UUIDs in our tests, but isn\u0027t required by the API specification. Backends could correctly return message IDs that are longer than 64 bytes, so I think you should replace \u0027{1,64}\u0027 with \u0027+\u0027. We can revisit this later if we want to restrict the message URL format further.\n\nNeither of these suggestions help explain the random /messages/messages/ error, though. :/","commit_id":"e1c1f506f88f95ddb9486c76f35dc7be8a3fb674"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"e92297ffbc1e08de4eae0bee411eac23d2d801cd","unresolved":false,"context_lines":[{"line_number":56,"context_line":"            },"},{"line_number":57,"context_line":"            \"minItems\": 1,"},{"line_number":58,"context_line":"            \"maxItems\": self.limits.message_paging_uplimit"},{"line_number":59,"context_line":"        }"},{"line_number":60,"context_line":"        return schema_message_get_many"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def setUp(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F9ncM%3D","line":59,"updated":"2013-12-09 16:43:32.000000000","message":"We should be defining these schemas in a separate file, so that they can be reused across the project, e.g., marconi/tests/schema.py.","commit_id":"e1c1f506f88f95ddb9486c76f35dc7be8a3fb674"}]}
