Commit graph

14 commits

Author SHA1 Message Date
Felipe Pena
195f1612f8
markused: fix option tracking on sumtype (fix #25025) (#25028) 2025-08-03 10:12:32 +03:00
Felipe Pena
57aae3fd20
cgen: fix json decode option alias (fix #24843) (#24853) 2025-07-06 08:22:07 +03:00
Delyan Angelov
91a3844ad5
tools: add support for // vtest vflags: -w in _test.v files, to allow v -W test . later, for files, that have known warnings 2025-06-22 12:43:04 +03:00
Felipe Pena
5eecd04eee
json: fix default struct field initialization with long array (#23355) 2025-01-03 19:25:21 +02:00
Felipe Pena
17812a77b8
cgen: fix type_default for option type, when the default expr is none (fix #23318) (#23320) 2024-12-30 21:06:42 +02:00
Felipe Pena
8cdb507bed
json: support @[json_null] tag to enforce null, when encoding none option values (#23319) 2024-12-30 20:59:28 +02:00
Felipe Pena
80bae08c9a
cgen,json: fix default initialization of structs with options (#23263) 2024-12-25 19:42:48 +02:00
Felipe Pena
98f13ef491
json: fix codegen for struct default expr (fix #23216) (#23233) 2024-12-23 00:26:55 +02:00
Carlos Esquerdo Bernat
63fff1dcd4
json: use @[required] to disallow parsing nulls (#23218) 2024-12-22 10:12:58 +02:00
Felipe Pena
0998bb772c
json: add primitive type validation (fix #23021) (#23142) 2024-12-13 08:10:51 +02:00
Felipe Pena
a66c4c9340
json: fix decode codegen for []&type (fix #23007) (#23010) 2024-11-30 08:40:14 +02:00
Turiiya
8c4de2000b
cgen, json: make errors more informative (resolve empty panics) (related: #21184) (#22898) 2024-11-18 10:59:39 +02:00
Turiiya
3bf459c0d2
checker: fix json.encode_pretty with a struct init expression argument (#22897) 2024-11-18 10:42:34 +02:00
Hitalo Souza
8ebbacecd6
json: move _test.v files to vlib/json/tests/ (#22731) 2024-11-12 20:33:01 +02:00