Skip to content

Commit 1a87948

Browse files
authored
remove comma from base types pattern (#538)
im using this schema and json schema faker to generate tests and this address schema pattern generates addresses with commas in them
1 parent 7907424 commit 1a87948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schemas/base-types.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
address:
22
title: hex encoded address
33
type: string
4-
pattern: ^0x[0-9,a-f,A-F]{40}$
4+
pattern: ^0x[0-9a-fA-F]{40}$
55
addresses:
66
title: hex encoded address
77
type: array
@@ -10,7 +10,7 @@ addresses:
1010
byte:
1111
title: hex encoded byte
1212
type: string
13-
pattern: ^0x([0-9,a-f,A-F]?){1,2}$
13+
pattern: ^0x([0-9a-fA-F]?){1,2}$
1414
bytes:
1515
title: hex encoded bytes
1616
type: string

0 commit comments

Comments
 (0)