Commit graph

203 commits

Author SHA1 Message Date
Larsimusrex
747af8c360
x.json2.decoder2: fix decoding of structs with option fields (fix #24409) (#24922) 2025-07-18 11:03:21 +03:00
Larsimusrex
54c6daab54
decoder2: fix checking and decoding of escape characters (fix #24834) (#24915)
Co-authored-by: Lars Dumke <lars-luis.dumke@keysight.com>
2025-07-17 08:34:05 +03:00
Felipe Pena
54fec7b772
x.json2.decoder2: fix option decode (fix #24861) (#24881) 2025-07-13 10:26:45 +03:00
Felipe Pena
8f15d65168
cgen, x.json2: fix anon struct encode (fix #24836) (#24852) 2025-07-06 06:41:42 +03:00
Delyan Angelov
30ce22866d docs: put some more dots in the doc comments of public APIs, found by find_doc_comments_with_no_dots.v 2025-07-02 16:12:03 +03:00
Hitalo Souza
cd244757db
x.json2: update tests to integrate decoder2 in json2 (#24551) 2025-05-29 13:01:50 +03:00
Laurent Cheylus
4dc3465046
x.json2: fix tests for deprecated function fast_raw_decode (#24527) 2025-05-20 16:03:00 +03:00
omahs
1957162c2a
all: fix typos (#24470) 2025-05-13 22:05:22 +03:00
Hitalo Souza
a412f53e62
x.json2.decoder2: fix array decoding in struct is field, when array is initialized (#24422) 2025-05-06 12:32:53 +03:00
kbkpbot
44a4975504
type_resolver: i32 is now $int too (fix #24346) (#24378) 2025-05-01 09:12:35 +03:00
kbkpbot
1f8f6d0e7d
x.json2: add u16(),u32() (fix #24337) (#24342) 2025-04-28 04:20:38 +03:00
Hitalo Souza
1f07431e1a
x.json2.decoder2: update decode.v (#24020) 2025-03-23 21:40:00 +02:00
Mr. Doge
21874f93dc
x.json2: fix "\\" scanner bug, disallow (ch < 0x20) unescaped control characters (#23954) 2025-03-16 13:38:40 +02:00
Delyan Angelov
af6247135c
x.json2: add a convenience Any.as_map_of_strings/0 method 2025-03-08 16:49:50 +02:00
Hitalo Souza
c349381aa5
x.json2.decoder2: improve string tests (#23809) 2025-02-26 03:49:04 +02:00
Felipe Pena
a4541c2351
checker: fix sumtype variant option type mismatch (#23659) 2025-02-07 16:48:22 +02:00
Felipe Pena
5be2fcab7b
checker: make option_var.str() an error, when done without unwrapping it first (fix #23557, fix #23558) (#23563) 2025-01-25 07:23:05 +02:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
Felipe Pena
87c0a9ce28
checker: fix comptime indexexpr resolving (#23333) 2025-01-02 01:48:50 +02:00
Felipe Pena
2112bb82eb
checker: fix structinit validation on nested generic Map[K]V (fix #23329) (#23332) 2025-01-01 15:33:56 +02:00
Felipe Pena
052e5af8f3
checker: fix assign check, when rechecking for another concrete type (#23212) 2024-12-20 19:39:11 +02:00
Hitalo Souza
e32e9f70ce
x.json2.decode2: minor improvements and bugfixes (#23083) 2024-12-07 10:22:46 +02:00
Hitalo Souza
de3b184b01
json2.decoder2: prepare decoder in json2 to be replaced by json2.decode2 (#23078) 2024-12-06 19:47:17 +02:00
Hitalo Souza
210239fb01
x.json2.decoder2: support fully struct attributes (#22741) 2024-12-06 13:53:07 +02:00
Hitalo Souza
a3bd5c64da
x.json2.decoder2: fix typos (#23018) 2024-12-05 23:02:33 +02:00
yuyi
17f3c8f813
checker: check fn call argument mismatch (fix #23016) (#23061) 2024-12-04 11:52:07 +02:00
Hitalo Souza
b2c5eca745
x.json2.decoder2: include missing test for #22730 (#23051) 2024-12-03 10:06:19 +02:00
Hitalo Souza
f29fb5a9f5
x.json2.decoder2: fix wrong sumtype and struct decoder in array (#23041) 2024-12-02 07:21:37 +02:00
Hitalo Souza
d8021bd459
x.json2.decoder2: support nesteded maps (#23027) 2024-12-01 14:08:37 +02:00
yuyi
7a4b3abd07
fmt: fix formating non-unsafe blocks with break line (fix #22900) (#22903) 2024-11-18 21:57:36 +02:00
Hitalo Souza
aaeae8c964
x.json2.decoder2: cleanup after #22751 (#22771) 2024-11-06 20:30:56 +02:00
Hitalo Souza
5384a2e77a
x.json2: pre-arranging the replacement of the decoder, to match https://github.com/enghitalo/v/tree/decoder2_to_json2 (#22729) 2024-11-02 10:57:18 +02:00
Hitalo Souza
54a6915f02
x.json2.decoder: support sumtypes fully (#22694) 2024-10-30 09:01:39 +02:00
Hitalo Souza
b59b57efd8
x.json2.decoder2: add initial support for sumtypes (#22669) 2024-10-27 22:34:35 +02:00
Hitalo Souza
dd0b6a6480
x.json2.decoder2: add a test for decoding pretty printed json (#22615) 2024-10-22 11:09:02 +03:00
Hitalo Souza
8e3cd702a1
x.json2.decoder2: support aliases fully (#22608) 2024-10-21 17:43:27 +03:00
Hitalo Souza
14ca0f533f
x.json2: cleanup comments (#22595) 2024-10-20 14:36:56 +03:00
Hitalo Souza
9ed378884a
x.json2.decoder2: use a linked list insted of an array, to store the decoded elements (#22581) 2024-10-20 01:12:58 +03:00
Hitalo Souza
6583d3c726
x.json2.decoder2: improve decode array (#22556) 2024-10-18 09:12:09 +03:00
Hitalo Souza
7c1cde0396
x.json2.decoder2: decode bool and numbers (#22550) 2024-10-17 20:53:04 +03:00
Hitalo Souza
8556353b43
x.json2.decoder2: improve decoder, add checker (part 1) (#22545) 2024-10-17 13:37:46 +03:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547) 2024-10-17 11:04:23 +03:00
yuyi
51b471b060
all: replace enum field name 'xxx_' with 'xxx' (#22469) 2024-10-10 09:17:19 +03:00
Carlos Esquerdo Bernat
eb57746a59
x.json2: allow parsing a value from a multidimensional array in map_from (#22442) 2024-10-08 09:49:45 +03:00
kbkpbot
e83b0d221f
x.json2: make encode number cJson compatible (fix #22363) (#22419) 2024-10-06 11:23:42 +03:00
Felipe Pena
cafb69dee2
x.json2: add support to array of array (fix #22362) (#22365) 2024-10-04 10:05:05 +03:00
Hitalo Souza
81b9fd8b14
x.json2.decoder2: clean up (#22373) 2024-10-01 10:15:51 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Carlos Esquerdo Bernat
4188deb96d
x.json2: support @[skip] as well (#22077) 2024-08-19 15:49:31 +03:00