1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

39 Commits

Author SHA1 Message Date
Tim Basel
9d0a5942ac
builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
yuyi
e66e35ced1
json: fix error for json encoding sumtype value (#13248) 2022-01-22 17:55:19 +02:00
Anton Zavodchikov
80c15607da
json: assert encoded struct with a sumtype (#11970) 2021-09-25 20:29:52 +03:00
Anton Zavodchikov
c75271fcb7
cgen: json sumtype inlining (#11961) 2021-09-24 16:49:00 +03:00
Anton Zavodchikov
d51f8ed878
v.gen.c: use unmangled variant name for encoding sumtype values in json (#11554) 2021-09-20 21:19:16 +03:00
Rémi
2534946ead
json: support sumtypes (#11549) 2021-09-19 21:36:26 +03:00
Alexander Medvednikov
d00808660f json: omitempty 2021-09-16 07:02:43 +03:00
Alexander Medvednikov
c9d6242c6d json: top level array test 2021-08-20 11:41:09 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
Delyan Angelov
684c10af1f
json: support for a [required] field attribute (#10955) 2021-07-25 17:27:37 +03:00
Delyan Angelov
8a380f4699
tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
spaceface
b9a381f101
all: migrate to the new Option (p. 1) (#8924) 2021-02-28 22:24:29 +03:00
Alexander Medvednikov
035a163454 json: encode_pretty (p. 2) + tests 2021-02-10 10:17:29 +01:00
yuyi
2ad2d68d7c
json: fix decoding of null map/array (#7936) 2021-01-07 20:21:22 +01:00
Alexander Medvednikov
b3e0926601 json: decode/encode time.Time 2020-12-22 07:24:44 +01:00
Seven Du
4a35a75b64
json: fix raw json string decoding crash when expected key is missing (#7206) 2020-12-09 20:10:41 +01:00
Xavier B
fafe30b6aa
json: add support for aliased struct fields (#6556) 2020-12-05 16:13:18 +01:00
Alexander Medvednikov
c7cefa9ce6 json: fix encoding pointers 2020-11-29 17:45:22 +01:00
Daniel Däschle
25912673a9
cgen: fix generic json bug (#6731) 2020-11-04 10:21:30 +02:00
Ned Palacios
1aec041371
json: fix encode/decode support for generic structs (#6489) 2020-09-29 03:15:00 +02:00
Vinicius Rangel
bf065674cc
json: maps, memory leak, and error forwarding (#6116) 2020-08-16 02:30:37 +02:00
Emily Hudson
46dbbd0ed0
json: add enum to json_test to prevent regressions 2020-06-02 12:13:26 +03:00
Delyan Angelov
f1f6fb1a9f json: fix f32 is not struct 2020-05-31 14:17:20 +03:00
Enzo Baldisserri
1633675c11
gen: fix nested or 2020-05-21 22:35:43 +02:00
Alexander Medvednikov
4f307c1a78 checker: requre & in struct init; http: chunked encoding 2020-05-18 05:11:00 +02:00
Ned Palacios
5b47ec49af
parser: add support for multiple struct field attributes 2020-05-08 15:09:42 +02:00
Alexander Medvednikov
148661ead6 json: wrap up: encode_array() 2020-05-05 14:54:12 +02:00
Alexander Medvednikov
b3d7b0205a json: handle field attributes 2020-05-05 14:41:27 +02:00
Alexander Medvednikov
ef6c418eb6 json: decode arrays 2020-05-05 13:23:44 +02:00
Alexander Medvednikov
9aa1a65489 checker: check match condition 2020-05-04 21:03:18 +02:00
Alexander Medvednikov
9823d80e0c json: minor fixes + bring back the test 2020-05-04 20:43:22 +02:00
Danil-Lapirow
bb9d95e9aa parser: allow '' in attributes 2019-10-18 20:17:23 +03:00
Michiel Vlootman
817f5bf0a6 add test for [json:fieldname]
Added test also tests the output from json.encode to make sure the json:fieldname attribute is used.
2019-08-23 11:43:11 +03:00
Alexander Medvednikov
e39cb41d6b json: custom json field names with "[json:field_name]" 2019-08-23 02:54:39 +03:00
Danil-Lapirow
fe8145c697 json: add raw json test 2019-08-22 14:22:16 +03:00
Julian Schurhammer
1864e92ff4 parser: disallow statements after a return, branch check $if, $else, switch, and loops correctly 2019-08-10 10:26:42 +02:00
Alexander Medvednikov
4594d78bd6 move all vlib modules to vlib/ 2019-06-29 12:00:31 +02:00