summaryrefslogtreecommitdiffstats
path: root/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources
diff options
context:
space:
mode:
authorJohnKeeney <john.keeney@est.tech>2021-05-10 13:19:46 +0100
committerJohnKeeney <john.keeney@est.tech>2021-05-10 23:14:00 +0100
commitfe40844bba4a94e26efc0f1c57d62c97e35bfc79 (patch)
tree8a6649e5916bd1d8cb9a531f1e02301724d3ffe8 /plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources
parentcac8dad2a5e52760d9fafc5d0e90c68ed700de37 (diff)
Support ':' in Apex Event Avro schema fieldnames
Similar to '.' (_DoT_) and '-' (_Dash_), the ':' (_ColoN_) character can now be used in Apex Event Field names specified using Avro Schema Change-Id: I320058441a1a1a544b9f1619e45c96e71e5aa9e3 Signed-off-by: JohnKeeney <john.keeney@est.tech> Issue-ID: POLICY-3301 Signed-off-by: JohnKeeney <john.keeney@est.tech>
Diffstat (limited to 'plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources')
-rw-r--r--plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/avsc/MapExampleAddressInvalidFields.avsc3
-rw-r--r--plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/data/MapExampleAddressInvalidFields.json14
2 files changed, 11 insertions, 6 deletions
diff --git a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/avsc/MapExampleAddressInvalidFields.avsc b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/avsc/MapExampleAddressInvalidFields.avsc
index ddffb4bbc..86c145bfc 100644
--- a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/avsc/MapExampleAddressInvalidFields.avsc
+++ b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/avsc/MapExampleAddressInvalidFields.avsc
@@ -4,7 +4,8 @@
"name" : "AddressUSRecord",
"fields" : [
{"name": "street_DasH_address", "type": "string"},
- {"name": "the_DoT_city", "type": "string"}
+ {"name": "the_DoT_city", "type": "string"},
+ {"name": "the_ColoN_code", "type": "string"}
]
}
} \ No newline at end of file
diff --git a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/data/MapExampleAddressInvalidFields.json b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/data/MapExampleAddressInvalidFields.json
index 6116db4f3..a1a70e95a 100644
--- a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/data/MapExampleAddressInvalidFields.json
+++ b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/src/test/resources/data/MapExampleAddressInvalidFields.json
@@ -1,18 +1,22 @@
{
"address.0" : {
"street-address" : "1600 Pennsylvania Avenue",
- "the.city" : "Washington DC"
+ "the.city" : "Washington DC",
+ "the:code" : "12345"
},
"address.1" : {
"street-address" : "Somewhere",
- "the.city" : "Over the rainbow"
+ "the.city" : "Over the rainbow",
+ "the:code" : "BlueBird"
},
"address.2" : {
"street-address" : "221 B Baker St.",
- "the.city" : "London"
+ "the.city" : "London",
+ "the:code" : "NW1"
},
"address.3" : {
"street-address" : "Wayne Manor",
- "the.city" : "Gotham City"
+ "the.city" : "Gotham City",
+ "the:code" : "BatCave7"
}
-} \ No newline at end of file
+}