Hitalo Souza
|
45854882b9
|
builtin, cgen: support FieldData.unaliased_typ, use it for generalising x.json2 (able to encode type aliased struct fields) (#16469)
|
2022-11-20 11:18:14 +02:00 |
|
Delyan Angelov
|
6b0743bb07
|
x.json2: add support for i8, i16, u8, u16, u32 (fix #16484)
|
2022-11-19 12:03:04 +02:00 |
|
Hitalo Souza
|
74613bd636
|
x.json2: generic-based encoder (finish PR#15137) (#16464)
|
2022-11-18 11:09:24 +02:00 |
|
yuyi
|
017ace6ea7
|
vfmt: change all '$expr' to '${expr}' (#16428)
|
2022-11-15 16:53:13 +03:00 |
|
Taegon Kim
|
d4c83f62b2
|
doc: fix a broken example in json2 's README.md (#16293)
|
2022-11-02 19:29:43 +02:00 |
|
Alexander Medvednikov
|
c6158e4519
|
all: remove unnecessary IError() casts
|
2022-10-28 19:08:30 +03:00 |
|
yuyi
|
9242d4b79b
|
json2: minor cleanup in README.md (#16096)
|
2022-10-18 18:00:14 +03:00 |
|
yuyi
|
f6844e9766
|
all: change optional to result of io (#16075)
|
2022-10-16 09:28:57 +03:00 |
|
Swastik Baranwal
|
b584e1df98
|
checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932)
|
2022-10-02 22:39:11 +03:00 |
|
yuyi
|
41dbd12bc4
|
tests: make error handling the same as the main function (#15825)
|
2022-09-21 19:45:43 +03:00 |
|
shove
|
8b962f8446
|
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752)
|
2022-09-15 07:59:31 +03:00 |
|
Hunam
|
78d1b7f4ef
|
net.http: Response.text -> Response.body (#14478)
|
2022-05-29 20:27:18 +03:00 |
|
Daniel Däschle
|
d679146a80
|
fmt: remove space in front of ? and ! (#14366)
|
2022-05-13 06:56:21 +03:00 |
|
StunxFS
|
db185e6580
|
checker: check for reserved type names in for in (fix #14072) (#14212)
|
2022-04-30 01:25:29 +03:00 |
|
Alexander Medvednikov
|
ae6a25f44e
|
websocket, utf: u8 fixes
|
2022-04-15 16:24:02 +03:00 |
|
Alexander Medvednikov
|
fb192d949b
|
all: replace []byte with []u8
|
2022-04-15 15:35:35 +03:00 |
|
Alexander Medvednikov
|
d4a0d6f73c
|
all: byte => u8
|
2022-04-15 14:58:56 +03:00 |
|
Ned
|
0e5ae7126f
|
x/json2: fix decoder errors (#13655)
* x/json2: fix decoder errors, refactoring
* x/json2: add error-catching tests
* x/json2: add missing docs
* x/json2: fmt
|
2022-03-05 13:02:43 +02:00 |
|
Ned
|
437fa02f27
|
x.json2: add customized JSON output capability via Encoder (#13654)
|
2022-03-04 14:39:23 +03:00 |
|
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 |
|
Benjamin Stigsen
|
ceb05b163a
|
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313)
|
2022-01-28 20:34:44 +02:00 |
|
playX
|
c07ce3ff15
|
cgen,json2: improve -nofloat support (#13117)
|
2022-01-10 12:42:41 +02:00 |
|
Alexander Medvednikov
|
59ed4be49a
|
all: update copyright year
|
2022-01-04 12:21:12 +03:00 |
|
Larpon
|
1d41d9daf9
|
json2: improve readability, add tests utilizing fix #12667 (#12836)
|
2021-12-15 12:20:05 +02:00 |
|
Delyan Angelov
|
1913de0187
|
x.json2: fix compilation with -autofree
|
2021-11-28 18:32:04 +02:00 |
|
Don Park
|
ae54cd78f5
|
json2: encode ascii chars < 0x20 in json (#12494)
|
2021-11-18 08:34:00 +03:00 |
|
Enzo
|
c8471528ce
|
fmt: format long sum-types with a line for each type (#11461)
|
2021-09-10 20:56:55 +03:00 |
|
Daniel Däschle
|
be0c54caf9
|
checker: require or block for sumtype map (#11089)
|
2021-09-10 16:07:39 +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 |
|
Flinner
|
1486258591
|
strconv: fix atoi returning 0 on large strings (#10635)
|
2021-07-02 10:39:57 +03:00 |
|
Delyan Angelov
|
58df35b453
|
x.json2: fix json_string for utf8 codepoints, add regression test
|
2021-06-29 11:40:52 +03:00 |
|
Ned Palacios
|
003f60fc1a
|
x.json2: fix nest level check (#10584)
|
2021-06-28 14:05:27 +03:00 |
|
Lukas Neubert
|
dee733aae4
|
fmt: reset const field align after multi line exprs (#9916)
|
2021-04-29 02:17:37 +03:00 |
|
Delyan Angelov
|
85e9cf1bd3
|
tests: add vlib/x/json2 to vtest-cleancode.v
|
2021-04-11 11:34:08 +03:00 |
|
Delyan Angelov
|
c939e4df97
|
x.json2: fix direct sum type init notices
|
2021-04-11 11:28:52 +03:00 |
|
Atakan Yenel
|
28018c6fc9
|
x.json2: add custom errors (#9523)
|
2021-03-30 15:29:17 +03:00 |
|
Ned Palacios
|
c5302bfcf5
|
x.json2: skip whitespace before scanning (#9508)
|
2021-03-30 09:40:20 +02:00 |
|
pancake
|
1bf7d968f9
|
x.json2: add u64 (#9457)
|
2021-03-25 16:53:39 +01:00 |
|
Delyan Angelov
|
c76c69ec35
|
all: simplify return if ... constructs to make more code compatible with -autofree
|
2021-03-22 16:45:29 +02:00 |
|
Ned Palacios
|
ee879f3e41
|
x.json2: proper string encoding + minor fixes (#9026)
|
2021-03-01 10:22:36 +01:00 |
|
spaceface
|
b9a381f101
|
all: migrate to the new Option (p. 1) (#8924)
|
2021-02-28 22:24:29 +03:00 |
|
Ned Palacios
|
8dff168e01
|
x.json2: create custom scanner for scanning JSON (#8716)
|
2021-02-26 08:36:02 +02:00 |
|
Delyan Angelov
|
1c0eefae38
|
parser/scanner: replace p.peek_tok2/3 with p.peek_token(2/3) (#8946)
|
2021-02-24 21:03:53 +03:00 |
|
zakuro
|
f54c1a5cc2
|
all: add strings.Builder.write_string and use write_string instead of write (#8892)
|
2021-02-22 13:18:11 +02:00 |
|
Lukas Neubert
|
e4a67dea37
|
json2: wrap Builder.free() calls inside unsafe (#8790)
|
2021-02-17 02:19:26 +02:00 |
|
Lukas Neubert
|
58b3a30b47
|
docs/readmes: format almost all remaining code blocks (#8590)
|
2021-02-05 19:50:28 +02:00 |
|
Delyan Angelov
|
978359a6fc
|
tests: fix some warnings in preparation for -W test-self
|
2021-01-31 11:05:17 +02:00 |
|
Lukas Neubert
|
ac2c3847af
|
all: update copyright to 2019-2021 (#8029)
|
2021-01-18 13:20:06 +01:00 |
|
Swastik Baranwal
|
a9ab79d301
|
checker: ban any_int/any_float outside buitlin (#7675)
|
2020-12-31 12:41:30 +01:00 |
|
Lukas Neubert
|
8adb1acf31
|
check-md: verify code example formatting (#7143)
|
2020-12-05 22:54:41 +01:00 |
|