You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be useful to be able to set limits on property names when defining them with patternProperties.
For example, I have an object which should have arbitrary key-value pairs, and I want to constrain the keys to be at most 64 characters. For now, I've resorted to this:
SIXTYFOURCHARACTERSYOUSAYWELLALRIGHTTHENLETSNOTEXCEEDTHATSHALLWEIMEANWHONEEDSMORETHANSIXTYFOURCHARACTERSANYWAY: Property name is too long (110 chars), maximum 64
The text was updated successfully, but these errors were encountered:
(resubmitting from here)
It might be useful to be able to set limits on property names when defining them with
patternProperties
.For example, I have an object which should have arbitrary key-value pairs, and I want to constrain the keys to be at most 64 characters. For now, I've resorted to this:
(resubmitting this, from [here|https://github.com/json-schema/json-schema/issues/193#issuecomment-255453173])
However, the error message generated is very confusing. For example, if I send this object:
I get the following error, which is clear to someone familiar with JSON-schema and the additional properties keyword, but not to everyone else:
SIXTYFOURCHARACTERSYOUSAYWELLALRIGHTTHENLETSNOTEXCEEDTHATSHALLWEIMEANWHONEEDSMORETHANSIXTYFOURCHARACTERSANYWAY: Additional properties not allowed
I suggest support for something like:
With the corresponding error message:
The text was updated successfully, but these errors were encountered: