0

I'm working with a draft-06 schema and have seen markup that's new to me:

"properties":{
  ".+":{
    "type":"string"
  }
},

What does the ".+" signify? Is this why, for example, jsonschema2pojo won't generate Java from this?

IVR Avenger
  • 15,090
  • 13
  • 46
  • 57
  • 2
    By looking at your problem I am not quite sure but I think it is a `regex` denoting json object of type String which has every character except for the line terminator(`\n` for instance)!!! –  Oct 18 '17 at 17:20

1 Answers1

1

Okay so by looking at your json I can figure it out that(a json-schema validator) the String represents a regular expression which denotes the "type":"String" of the JSON object can contain every character except for the line terminators(say \n).

The above regex will be applied to each and every json object of type properties. You can also get a better insight from the answer mentioned in here. You can also refer this link to enhance your understanding better about the use of JSON regex.

Regards :)