@@ -247,34 +247,37 @@ The following table illustrates the results of different email strings
247
247
248
248
The following table illustrates the rest of the formats JSON Infer Types supports
249
249
250
- | Example Strings | Name | Variant |
251
- | ----------------------------------------- | ----------- | --------- |
252
- | ` "USD" ` , ` "BTC" ` | currency | iso4217 |
253
- | ` "United States dollar" ` , ` "Euro" ` | currency | english |
254
- | ` "ETH" ` , ` "LTC" ` | currency | crypto |
255
- | ` '$' ` , ` '£' ` , ` '€' ` , ` '¥' ` | currency | symbol |
256
- | ` "USA" ` , ` "MMR" ` | country | iso3166-3 |
257
- | ` "US" ` , ` "GB" ` , ` "JP" ` | country | iso3166-2 |
258
- | ` ".com" ` , ` ".co.uk" ` , ` ".biz" ` | tld | |
259
- | ` "192.168.0.1" ` , ` "172.16.0.0" ` | ip | v4 |
260
- | ` "2001:db8:1234::1" ` | ip | v6 |
261
- | ` "en" ` , ` "ab" ` , ` "es" ` | language | iso693-1 |
262
- | ` "eng" ` , ` "eus" ` , ` "zul" ` | language | iso693-2 |
263
- | ` "Arabic" ` , ` "Welsh" ` , ` "Russian" ` | language | english |
264
- | ` "dansk" ` , ` "Español" ` | language | native |
265
- | ` "+1 (684) 633-5115" ` , ` "+49 30 83050" ` | phoneNumber | e.164 |
266
- | ` "4677658f-8865-47db-afb0-908e25246348" ` | uuid | v4 |
267
- | ` "cfa649f0-650b-11ec-acb3-03462fc79f5d" ` | uuid | v1 |
268
- | ` "bde4a7b9-5793-5a1f-b378-211205b15898" ` | uuid | v5 |
269
- | ` "foo.example.com" ` , ` "localhost" ` | hostname | rfc1123 |
270
- | ` "exa_mple.com" ` | hostname | rfc5890 |
271
- | ` "544B" ` , ` "1.0MB" ` , ` "377K" ` , ` "1.87GB" ` | filesize | human |
272
- | ` '{ "foo": 1 }' ` | json | ecma262 |
273
- | ` '{ foo: 1, }' ` | json | json5 |
274
- | ` "/foo/bar" ` , ` "/foo/-/bar" ` | jsonPointer | rfc6901 |
275
- | ` "0/foo/bar" ` , ` "2/0/baz/1/zip" ` | jsonPointer | relative |
276
- | ` "😄" ` , ` "🤪👨🏽🚀" ` , ` "👩👩👧👧" ` | emoji | |
277
- | ` "1.11.0" ` , ` "0.0.1" ` , ` "1.0.0-alpha.1" ` | semver | |
250
+ | Example Strings | Name | Variant |
251
+ | ---------------------------------------------------- | ----------- | --------- |
252
+ | ` "USD" ` , ` "BTC" ` | currency | iso4217 |
253
+ | ` "United States dollar" ` , ` "Euro" ` | currency | english |
254
+ | ` "ETH" ` , ` "LTC" ` | currency | crypto |
255
+ | ` '$' ` , ` '£' ` , ` '€' ` , ` '¥' ` | currency | symbol |
256
+ | ` "USA" ` , ` "MMR" ` | country | iso3166-3 |
257
+ | ` "US" ` , ` "GB" ` , ` "JP" ` | country | iso3166-2 |
258
+ | ` ".com" ` , ` ".co.uk" ` , ` ".biz" ` | tld | |
259
+ | ` "192.168.0.1" ` , ` "172.16.0.0" ` | ip | v4 |
260
+ | ` "2001:db8:1234::1" ` | ip | v6 |
261
+ | ` "en" ` , ` "ab" ` , ` "es" ` | language | iso693-1 |
262
+ | ` "eng" ` , ` "eus" ` , ` "zul" ` | language | iso693-2 |
263
+ | ` "Arabic" ` , ` "Welsh" ` , ` "Russian" ` | language | english |
264
+ | ` "dansk" ` , ` "Español" ` | language | native |
265
+ | ` "+1 (684) 633-5115" ` , ` "+49 30 83050" ` | phoneNumber | e.164 |
266
+ | ` "4677658f-8865-47db-afb0-908e25246348" ` | uuid | v4 |
267
+ | ` "cfa649f0-650b-11ec-acb3-03462fc79f5d" ` | uuid | v1 |
268
+ | ` "bde4a7b9-5793-5a1f-b378-211205b15898" ` | uuid | v5 |
269
+ | ` "foo.example.com" ` , ` "localhost" ` | hostname | rfc1123 |
270
+ | ` "exa_mple.com" ` | hostname | rfc5890 |
271
+ | ` "544B" ` , ` "1.0MB" ` , ` "377K" ` , ` "1.87GB" ` | filesize | human |
272
+ | ` '{ "foo": 1 }' ` | json | ecma262 |
273
+ | ` '{ foo: 1, }' ` | json | json5 |
274
+ | ` "/foo/bar" ` , ` "/foo/-/bar" ` | jsonPointer | rfc6901 |
275
+ | ` "0/foo/bar" ` , ` "2/0/baz/1/zip" ` | jsonPointer | relative |
276
+ | ` "😄" ` , ` "🤪👨🏽🚀" ` , ` "👩👩👧👧" ` | emoji | |
277
+ | ` "1.11.0" ` , ` "0.0.1" ` , ` "1.0.0-alpha.1" ` | semver | |
278
+ | ` "#ff0000" ` , ` "#D47DB9" ` | color | hex |
279
+ | ` "rgb(255, 255, 255)" ` , ` "rgb(255, 255, 255,.5)" ` | color | rgb |
280
+ | ` "hsl(100, 100%, 50%)" ` , ` "hsl(235, 100%, 50%, .5)" ` | color | hsl |
278
281
279
282
## Object Formats
280
283
0 commit comments