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
|
9340557dea
|
Address review comments
|
2021-08-11 00:04:14 -04:00 |
|
Quentin Smith
|
24b71a8765
|
Properly report validation errors from inline fields in strict mode
|
2021-08-10 03:43:50 -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 |
|
zoncoen
|
f6a3c23bf9
|
Add yaml.NodeToValue(ast.Node, interface{}, ...DecodeOption) error
|
2021-07-19 21:32:26 +09:00 |
|
Nikolai Avteniev
|
e845c4b76d
|
use yaml structure name in error message
|
2021-06-29 16:49:57 -04:00 |
|
Nikolai Avteniev
|
de9cea4bd2
|
Nicely format unexpected node type errors
|
2021-06-29 16:49:40 -04:00 |
|
Nikolai Avteniev
|
ceb9f9163c
|
Handle missing required field validation
|
2021-04-24 17:06:35 -04: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 |
|
Masaaki Goshima
|
d68128d154
|
Add MarshalWithContext and UnmarshalWithContext
|
2020-11-11 19:27:58 +09:00 |
|
Masaaki Goshima
|
c395c330c5
|
Add UseJSONMarshaler option for encoder and UseJSONUnmarshaler option for decoder
|
2020-10-26 19:00:49 +09:00 |
|
Ichito Nagata
|
4c791524fb
|
tweak error messages to be more descriptive
|
2020-09-19 08:06:17 +09:00 |
|
Masaaki Goshima
|
23d3128925
|
Support io.Reader interface on ast.Node
|
2020-07-15 22:16:27 +09:00 |
|
Masaaki Goshima
|
fc5218d9f3
|
Merge pull request #151 from goccy/feature/support-decoding-of-tag-and-map-key
Support decoding of canonical yaml
|
2020-07-15 22:05:07 +09:00 |
|
itai Schwartz
|
f1ce598f9b
|
fix disallowUnknownField with struct validation
|
2020-07-12 19:02:23 +03:00 |
|
Masaaki Goshima
|
152a6fb581
|
Merge pull request #147 from itaischwartz/bugfix/fix-nested-struct-validation
Fix nested struct validation
|
2020-07-03 20:26:26 +09:00 |
|
itai Schwartz
|
4e9286dc7d
|
Replace ok -> exists in one more check
|
2020-07-03 13:28:59 +03:00 |
|
itai Schwartz
|
952ee495a9
|
Rename exist -> exists
|
2020-07-03 13:26:05 +03:00 |
|
itai Schwartz
|
c5dcf09879
|
Align with library conventions
|
2020-07-03 13:24:06 +03:00 |
|
Masaaki Goshima
|
f00b223dfd
|
Add test case for decoding of canonical yaml
|
2020-07-02 17:26:35 +09:00 |
|
itai Schwartz
|
a2c87f7011
|
check if structField exists on validation
|
2020-06-28 22:16:03 +03:00 |
|
Masaaki Goshima
|
3b54bfbc6e
|
Fix TextUnmarshaler and BytesUnmarshaler
|
2020-06-23 12:39:50 +09:00 |
|
Masaaki Goshima
|
80e0e8a66f
|
Fix encoding when last node is literal
|
2020-06-16 22:37:59 +09:00 |
|
Masaaki Goshima
|
597cf26773
|
Fix recursive alias
|
2020-06-15 13:48:17 +09:00 |
|
Masaaki Goshima
|
30937a2979
|
Fix handling of value node corresponding to MergeKey
|
2020-06-15 12:14:02 +09:00 |
|
Masaaki Goshima
|
a56d78cbf1
|
Fix processing of MergeKeyNode
|
2020-06-11 20:58:37 +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
|
e95f2fb21d
|
Fix panic: reflect: call of reflect.Value.Interface on zero Value
|
2020-06-01 17:31:07 +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
|
ae7001787c
|
Support decoding for MapItem and MapSlice
|
2020-05-28 17:30:19 +09:00 |
|
Masaaki Goshima
|
233a9d3e94
|
Support decoding for struct field with inline and alias
|
2020-03-02 22:55:57 +09:00 |
|
Masaaki Goshima
|
539e14a7fd
|
Add ignoreMergeKey argument for MergeKey in struct
|
2020-03-02 22:53:33 +09:00 |
|
Masaaki Goshima
|
34a82823ba
|
Prevent overwrite anchor value
|
2020-03-02 22:51:53 +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 |
|
Masaaki Goshima
|
609746c0b5
|
Merge pull request #74 from kyoh86/text-marshal
Support encoding.TextMarshaler/TextUnmarshaler
|
2020-02-14 17:53:13 +09:00 |
|
Kyoichiro Yamada
|
8c0eb326e4
|
move decode tests to decode_test.go
|
2020-01-14 22:50:50 +09:00 |
|
Kyoichiro Yamada
|
b759dca4f7
|
merge decode unmarshalable tests
|
2020-01-14 21:44:48 +09:00 |
|
Kyoichiro Yamada
|
a31d3eb009
|
use Sprint instead of .(string) cast
|
2020-01-14 21:43:03 +09:00 |
|
Kyoichiro Yamada
|
a59c1d6d35
|
don't quote string before unmarshal text
|
2020-01-12 22:37:09 +09:00 |
|
Kyoichiro Yamada
|
9206db8998
|
fix #75
|
2020-01-12 22:28:44 +09:00 |
|
Kyoichiro Yamada
|
81b7b6d4a7
|
support encoding.TextMarshaler and encoding.TextUnmarshaler
|
2020-01-12 02:50:51 +09:00 |
|