Editing schemas with hashmap fields is currently very uncomfortable:
- field looks like empty object and the only way to view it’s schema is to open settings dialog
- there is no way to define key pattern or set other validation for keys
- there is no way to set examples for keys, so generated examples are always require manual adjustment
Suggested ways to improve it:
- Add new field type “Hashmap” - it will be object type with defined additionalProperties/patternProperties and propertyNames fields (in json schema view)
- Support all string validation for keys (regexp pattern, enum, minLength, maxLength, etc)
- Support examples for keys
- Support Hashmap fields in example generation (based on examples in schema)