Comment 2 for bug 1737952

Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

It would be nice if we could upgrade our jsonschema/jsonpatch support in Rocky.

With jsonschema draft04, we can do something like this:

replace
     "additionalProperties": {"type": "string"}

with
   "patternProperties" : {
     "^.{1,255}$": {
       "type": "string",
       "maxLength": 255}
     },
    "additionalProperties": false

This would force all properties (keys) not explicitly defined in the schema to have the 255 maxlen restriction for both key and value, and it would be de facto backward compatible (because even though the current schema allows you to specify a key > 255 char, Glance does not allow you to actually do it). But I think it's too late in the cycle to try this.