diff --git a/demo/test/test_country.yaml b/demo/test/test-country.yaml similarity index 100% rename from demo/test/test_country.yaml rename to demo/test/test-country.yaml diff --git a/demo/test/test_date.yaml b/demo/test/test-date.yaml similarity index 100% rename from demo/test/test_date.yaml rename to demo/test/test-date.yaml diff --git a/demo/test/test-email.yaml b/demo/test/test-email.yaml index 90da56ce547d47df29c3de9097894b018831f9f9..236d6f0dce65d5b0977531b569e7e3b35b142711 100644 --- a/demo/test/test-email.yaml +++ b/demo/test/test-email.yaml @@ -5,45 +5,45 @@ version: 1.0 fields: - field: number_with_esp - from: email.email.v1.yaml + from: email.v1.yaml use: number_with_esp prefix: "" postfix: "\t" - field: number_with_self - from: email.email.v1.yaml + from: email.v1.yaml use: number_with_self prefix: "" postfix: "\t" - field: letter_with_esp - from: email.email.v1.yaml + from: email.v1.yaml use: letter_with_esp prefix: "" postfix: "\t" - field: letter_with_self - from: email.email.v1.yaml + from: email.v1.yaml use: letter_with_self prefix: "" postfix: "\t" - field: western_with_esp - from: email.email.v1.yaml + from: email.v1.yaml use: western_with_esp prefix: "" postfix: "\t" - field: western_with_self - from: email.email.v1.yaml + from: email.v1.yaml use: western_with_self prefix: "" postfix: "\t" - field: pinyin_with_esp - from: email.email.v1.yaml + from: email.v1.yaml use: pinyin_with_esp prefix: "" postfix: "\t" - field: pinyin_with_self - from: email.email.v1.yaml + from: email.v1.yaml use: pinyin_with_self prefix: "" postfix: "\t" \ No newline at end of file diff --git a/demo/test/test_format.yaml b/demo/test/test-format.yaml similarity index 100% rename from demo/test/test_format.yaml rename to demo/test/test-format.yaml diff --git a/demo/test/test-ip.yaml b/demo/test/test-ip.yaml new file mode 100644 index 0000000000000000000000000000000000000000..983dc1febe183004e4af112fd291096974882251 --- /dev/null +++ b/demo/test/test-ip.yaml @@ -0,0 +1,37 @@ +title: 测试文件 +desc: +author: zentao +version: 1.0 + +fields: + - field: privateC + from: ip.v1.yaml + use: privateC + prefix: "" + postfix: "\t" + - field: privateB + from: ip.v1.yaml + use: privateB + prefix: "" + postfix: "\t" + - field: privateA + from: ip.v1.yaml + use: privateA + prefix: "" + postfix: "\t" + + - field: ipC + from: ip.v2.yaml + use: ipC + prefix: "" + postfix: "\t" + - field: ipB + from: ip.v2.yaml + use: ipB + prefix: "" + postfix: "\t" + - field: ipA + from: ip.v2.yaml + use: ipA + prefix: "" + postfix: "\t" \ No newline at end of file diff --git a/demo/test/test_recursice.yaml b/demo/test/test-recursice.yaml similarity index 100% rename from demo/test/test_recursice.yaml rename to demo/test/test-recursice.yaml diff --git a/yaml/email/email.v1.yaml b/yaml/email/v1.yaml similarity index 100% rename from yaml/email/email.v1.yaml rename to yaml/email/v1.yaml diff --git a/yaml/ip/v2.yaml b/yaml/ip/v2.yaml new file mode 100644 index 0000000000000000000000000000000000000000..45534f052363add637dfd62b5148df8e01919d61 --- /dev/null +++ b/yaml/ip/v2.yaml @@ -0,0 +1,54 @@ +title: IP地址 +desc: 含有多种实现的示例。 +author: wwccss +version: 1.0 + +field: ip +instances: + - instance: ipC + note: C类IP地址 + mode: r + fields: + - field: part1 + range: 192-223 + postfix: . + - field: part2 + range: 0-254 + postfix: . + - field: part3 + range: 0-254 + postfix: . + - field: part4 + range: 1-254 + + - instance: ipB + note: B类IP地址 + mode: r + fields: + - field: part1 + range: 128-191 + postfix: . + - field: part2 + range: 0-254 + postfix: . + - field: part3 + range: 0-254 + postfix: . + - field: part4 + range: 1-254 + + - instance: ipA + note: A类IP地址 + mode: r + fields: + - field: part1 + range: 1-126 + postfix: . + - field: part2 + range: 0-254 + postfix: . + - field: part3 + range: 0-254 + postfix: . + - field: part4 + range: 1-254 \ No newline at end of file