如何在JSON编辑器中验证对象的名称/密钥

时间:2018-06-25 10:05:39

标签: json

我的json如下:

      series: {
          type: object
          minProperties: 1
          patternProperties: {
              .*: {
                  type: object
                  properties: {
                      source: {
                          type: string
                          pattern : ^[A-Za-z_][A-Za-z\d_]*$
                      }

                  }
               }
           }
       }

如何仅将'。*'验证为字符串。

0 个答案:

没有答案