Alexander A. Klimov
|
df0b65c5de
|
TestDecoder_DefaultValues(): also cover nested structs
|
2021-10-14 18:52:02 +02:00 |
|
Quentin Smith
|
f50bfefc06
|
Wrap conversion errors and add test
|
2021-08-18 01:13:25 -04:00 |
|
Quentin Smith
|
adc9a196b2
|
Encode and decode time.Duration fields (#201)
This uses `time.ParseDuration` and `time.Duration.String`, and is
compatible with gopkg.in/yaml's encoding.
|
2021-08-11 15:07:04 -04:00 |
|
Quentin Smith
|
367f635c83
|
Fix error reporting on inline structs in strict mode (#243)
|
2021-08-10 00:33:19 -04:00 |
|
zoncoen
|
416f941816
|
Fix decode nodes included anchors
|
2021-07-20 02:20:17 +09:00 |
|
Masaaki Goshima
|
894a764b31
|
Merge pull request #235 from goccy/feature/rename-context-api
Rename MarshalWithContext and UnmarshalWithContext
|
2021-07-19 22:03:38 +09:00 |
|
zoncoen
|
f6a3c23bf9
|
Add yaml.NodeToValue(ast.Node, interface{}, ...DecodeOption) error
|
2021-07-19 21:32:26 +09:00 |
|
Masaaki Goshima
|
c14dac734e
|
Rename MarshalWithContext and UnmarshalWithContext
|
2021-07-19 19:01:49 +09:00 |
|
Masaaki Goshima
|
d1f2ceeb3d
|
Add roundtrip test
|
2021-03-02 12:24:12 +09:00 |
|
Masaaki Goshima
|
8a0eacffd6
|
Support to decode ast.Node directly
|
2021-03-01 13:47:31 +09:00 |
|
David May
|
c11765e28c
|
test: add more tests
|
2021-01-18 16:10:49 -06:00 |
|
David May
|
918aca63ab
|
fix: force document markers to be at beginning of line
|
2021-01-18 13:33:07 -06:00 |
|
Masaaki Goshima
|
79c54b86d9
|
Add test cases
|
2020-11-12 16:03:42 +09:00 |
|
Masaaki Goshima
|
c395c330c5
|
Add UseJSONMarshaler option for encoder and UseJSONUnmarshaler option for decoder
|
2020-10-26 19:00:49 +09:00 |
|
Masaaki Goshima
|
23d3128925
|
Support io.Reader interface on ast.Node
|
2020-07-15 22:16:27 +09:00 |
|
Masaaki Goshima
|
f00b223dfd
|
Add test case for decoding of canonical yaml
|
2020-07-02 17:26:35 +09:00 |
|
Masaaki Goshima
|
3b54bfbc6e
|
Fix TextUnmarshaler and BytesUnmarshaler
|
2020-06-23 12:39:50 +09:00 |
|
Masaaki Goshima
|
968a7172a8
|
Support escape characters in double quoted string
|
2020-06-20 14:10:17 +09:00 |
|
Masaaki Goshima
|
62e9a8dfee
|
Fix handling of tab character at right position
|
2020-06-17 11:38:36 +09:00 |
|
Masaaki Goshima
|
80e0e8a66f
|
Fix encoding when last node is literal
|
2020-06-16 22:37:59 +09:00 |
|
Masaaki Goshima
|
ddce176262
|
Fix UnmarshalBytes with Quoted string
|
2020-06-16 15:24:59 +09:00 |
|
Masaaki Goshima
|
bc023734c7
|
Fix sequence with literal include empty line
|
2020-06-16 14:58:49 +09:00 |
|
Masaaki Goshima
|
9565ed166b
|
Fix processing of Literal with NewLineCharacter
|
2020-06-15 20:16:51 +09:00 |
|
Masaaki Goshima
|
2a15b3d6d1
|
Fix quoted string with new line character
|
2020-06-15 17:30:27 +09:00 |
|
Masaaki Goshima
|
597cf26773
|
Fix recursive alias
|
2020-06-15 13:48:17 +09:00 |
|
Masaaki Goshima
|
f9107996ab
|
Fix column number at resolving of alias node
|
2020-06-11 20:40:27 +09:00 |
|
Masaaki Goshima
|
97e839c933
|
Resolve alias node before calling UnmarshalYAML([]byte)
|
2020-06-11 19:42:23 +09:00 |
|
Masaaki Goshima
|
c0e22be039
|
Fix reflection error in deleteStructKeys
|
2020-06-09 10:36:35 +09:00 |
|
Masaaki Goshima
|
4013d13463
|
Support decoding with DisallowDuplicateKey option for struct
|
2020-06-08 23:34:34 +09:00 |
|
Masaaki Goshima
|
3eacf18ea8
|
Fix panic at decoding of inlining pointer type with DisallowUnknownField option
|
2020-06-08 23:06:16 +09:00 |
|
Masaaki Goshima
|
997278a244
|
Fix test case by new result of PrintErrorTOken
|
2020-06-07 20:35:18 +09:00 |
|
Masaaki Goshima
|
5132bb68f3
|
Fix processing when specified empty token as map value
|
2020-06-03 17:52:23 +09:00 |
|
Masaaki Goshima
|
95f027399a
|
Fix processing when specified empty token as map value
|
2020-06-03 17:12:33 +09:00 |
|
Masaaki Goshima
|
2288b1c448
|
Support DisallowDuplicateKey and Strict option for Decoder
|
2020-06-01 17:26:27 +09:00 |
|
Masaaki Goshima
|
68532a40e3
|
Support stream decoding
|
2020-06-01 16:14:20 +09:00 |
|
Masaaki Goshima
|
fe875b3705
|
Add UseOrderedMap option
|
2020-05-29 19:47:47 +09:00 |
|
Masaaki Goshima
|
abe15e4a1c
|
Fix handling of escape character in quotation
|
2020-05-29 18:09:51 +09:00 |
|
Masaaki Goshima
|
ae7001787c
|
Support decoding for MapItem and MapSlice
|
2020-05-28 17:30:19 +09:00 |
|
k1LoW
|
81313a9432
|
Support "c-directives-end marker only" document.
|
2020-03-07 14:59:56 +09:00 |
|
Masaaki Goshima
|
21ecc76cf7
|
Fix decoding for literal with BytesUnmarshaler
|
2020-03-06 08:05:57 +09:00 |
|
Masaaki Goshima
|
6dca3ab58f
|
Fix decoding of MergeKey
|
2020-03-02 16:18:13 +09:00 |
|
k1LoW
|
0b3ce0180a
|
Distinguish between empty ptr value (e.g. *int, *string) and nil ptr value
|
2020-02-22 11:46:09 +09:00 |
|
Kyoichiro Yamada
|
e4402a83e0
|
remove json sample
|
2020-01-15 11:29:25 +09:00 |
|
Kyoichiro Yamada
|
8c0eb326e4
|
move decode tests to decode_test.go
|
2020-01-14 22:50:50 +09:00 |
|
kitagawa
|
3032e43e20
|
Fix error and Refactoring
|
2019-12-18 13:26:59 +09:00 |
|
kitagawa
|
7ae4096801
|
Merge branch 'master' into fix-disallow-unknown-field
|
2019-12-14 14:45:14 +09:00 |
|
Masaaki Goshima
|
61467027bd
|
Supports default value in decoding for struct
|
2019-12-14 11:55:23 +09:00 |
|
kitagawa
|
3ba8abd35a
|
Fix test case.
|
2019-12-13 15:00:04 +09:00 |
|
kitagawa
|
5b44bcd216
|
Fix disallowUnknownField for inline struct
|
2019-12-13 13:33:56 +09:00 |
|
kitagawa
|
6697bfad47
|
Rename variables
|
2019-12-11 13:07:34 +09:00 |
|