)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":27900,"name":"Artem Goncharov","email":"artem.goncharov@gmail.com","username":"gtema"},"change_message_id":"fe0105362cb9e89fc837bbacc351dfdd423b6b2f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5ec8cfb7_e2be89d4","updated":"2026-12-03 17:02:35.000000000","message":"all corner-cases are a permanent pain - every service invents own creepy schemas. \nAnyway, there are few gaps that we would want to tighten further","commit_id":"14fb907302e46ba997d9411da33ee03ec5f2a36e"}],"codegenerator/openapi/base.py":[{"author":{"_account_id":27900,"name":"Artem Goncharov","email":"artem.goncharov@gmail.com","username":"gtema"},"change_message_id":"fe0105362cb9e89fc837bbacc351dfdd423b6b2f","unresolved":true,"context_lines":[{"line_number":887,"context_line":"                if spec \u003d\u003d {}:"},{"line_number":888,"context_line":"                    # Nova added empty params since it was never validating them. Skip"},{"line_number":889,"context_line":"                    param_attrs[\"schema\"] \u003d TypeSchema(type\u003d\"string\")"},{"line_number":890,"context_line":"                elif spec.get(\"type\") \u003d\u003d \"array\":"},{"line_number":891,"context_line":"                    items \u003d copy.deepcopy(spec[\"items\"])"},{"line_number":892,"context_line":"                    if ("},{"line_number":893,"context_line":"                        \"type\" not in items"}],"source_content_type":"text/x-python","patch_set":2,"id":"f1bc7c7c_5467ec44","line":890,"updated":"2026-12-03 17:02:35.000000000","message":"You only treat strings, leaving other types failing\nMicroversion 1.0 query schema:\n{\"type\": \"object\", \"properties\": {\n    \"priority\": {\"type\": \"array\", \"items\": {\"enum\": [1, 2]}}\n}}\nItems have no type, enum not all strings, so no inference. Param gets type\u003dNone.\n\nMicroversion 1.5 query schema:\n{\"type\": \"object\", \"properties\": {\n    \"priority\": {\"type\": \"array\", \"items\": {\"type\": \"integer\", \"enum\": [1, 2, 3]}}\n}}\nParam gets type\u003d\"integer\".\n\nyou can infer type from enum values (integer, number, boolean, string) like is done in some other places. Use .get(\u0027items\u0027, {}). Make the type-change check skip None.","commit_id":"14fb907302e46ba997d9411da33ee03ec5f2a36e"},{"author":{"_account_id":27900,"name":"Artem Goncharov","email":"artem.goncharov@gmail.com","username":"gtema"},"change_message_id":"fe0105362cb9e89fc837bbacc351dfdd423b6b2f","unresolved":true,"context_lines":[{"line_number":898,"context_line":"                        # carries its type in the enum values."},{"line_number":899,"context_line":"                        items[\"type\"] \u003d \"string\""},{"line_number":900,"context_line":"                    param_attrs[\"schema\"] \u003d TypeSchema(**items)"},{"line_number":901,"context_line":"                else:"},{"line_number":902,"context_line":"                    param_attrs[\"schema\"] \u003d TypeSchema(**copy.deepcopy(spec))"},{"line_number":903,"context_line":"                param_attrs[\"description\"] \u003d spec.get(\"description\")"},{"line_number":904,"context_line":"                if min_ver:"}],"source_content_type":"text/x-python","patch_set":2,"id":"64bc8b66_e36bba80","line":901,"updated":"2026-12-03 17:02:35.000000000","message":"since you processed type an untyped anyOf query param would become TypeSchema(type\u003dNone). This is not very useful and if a later mv sets the type it would case \"change type across microversions\" error later. We still need to find a way to handle all possibilities of missing type while also blaming services for not designing their apis/schemas correctly.  Example: `limit: {anyOf: [integer, string]}` in 1.0 and `{type: integer}` in 1.5.","commit_id":"14fb907302e46ba997d9411da33ee03ec5f2a36e"}],"codegenerator/tests/unit/test_openapi.py":[{"author":{"_account_id":27900,"name":"Artem Goncharov","email":"artem.goncharov@gmail.com","username":"gtema"},"change_message_id":"fe0105362cb9e89fc837bbacc351dfdd423b6b2f","unresolved":true,"context_lines":[{"line_number":258,"context_line":"            None,"},{"line_number":259,"context_line":"            None,"},{"line_number":260,"context_line":"        )"},{"line_number":261,"context_line":"        self.assertIn(\"nodes_limit\", spec.components.parameters)"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"class TestNeutronGetSchemaValues(TestCase):"}],"source_content_type":"text/x-python","patch_set":2,"id":"08f3283f_9fc885c0","line":261,"updated":"2026-12-03 17:02:35.000000000","message":"I think it would be very useful to actually verify what the resulting type is rather than only verifying it passed","commit_id":"14fb907302e46ba997d9411da33ee03ec5f2a36e"}]}
