Commit graph

147 commits

Author SHA1 Message Date
kitagawa
6697bfad47 Rename variables 2019-12-11 13:07:34 +09:00
kitagawa
d20349ab27 Wrap error 2019-12-11 11:27:43 +09:00
kitagawa
d24747ebcb Merge branch 'master' into disallowUnknownField 2019-12-11 10:41:25 +09:00
kitagawa
3357b2c861 Reafctor keyToNodeMap 2019-12-11 10:38:21 +09:00
Masaaki Goshima
2f17b05e19 Improve code coverage for inline struct 2019-12-11 00:41:05 +09:00
kitagawa
97bc526804 Add disallowUnknownField Option 2019-12-10 18:41:23 +09:00
Masaaki Goshima
115432ad66 Returns decoding error for type mismatch or overflow number 2019-12-10 14:33:08 +09:00
Masaaki Goshima
3ca6d0686e Ignore invalid field for decoding embedded struct 2019-11-06 19:44:18 +09:00
Masaaki Goshima
4dc8ed6703 Fix design of parser API 2019-11-05 17:02:55 +09:00
Masaaki Goshima
84a105a3ba Add timestamp tag 2019-11-01 14:22:06 +09:00
Masaaki Goshima
2f61d8d3fa Supports decoding for time.Time type 2019-11-01 14:09:33 +09:00
Masaaki Goshima
2918c3e6bf Supports decoding for array type 2019-11-01 12:44:58 +09:00
Masaaki Goshima
fc5cfaed33 Add errTypeMimatch variable 2019-11-01 12:44:58 +09:00
Masaaki Goshima
a7480c49dd Add handling for NullNode 2019-11-01 12:44:58 +09:00
Masaaki Goshima
561653846d Fix cast to float64 2019-11-01 11:26:36 +09:00
Masaaki Goshima
01f4d5024e Add test cases for flow sequence 2019-10-31 17:56:04 +09:00
Masaaki Goshima
14b92c22bb Supports explicit float/null tag 2019-10-31 17:38:53 +09:00
Masaaki Goshima
4780e46e37 Integrate FlowSequenceNode into SequenceNode 2019-10-31 13:06:35 +09:00
Masaaki Goshima
e8a411abfc Integrate FlowMappingNode into MappingNode 2019-10-31 12:25:33 +09:00
Masaaki Goshima
66d213ca41 Rename MappingCollectionNode to MappingNode 2019-10-31 12:14:39 +09:00
Masaaki Goshima
4a90c16927 Supports decoding for null value 2019-10-30 16:57:59 +09:00
Masaaki Goshima
eb7d0113b0 Add overflow test cases 2019-10-29 20:15:27 +09:00
Masaaki Goshima
8f10a4bd41 Supports overflow at type conversion 2019-10-29 19:46:55 +09:00
Masaaki Goshima
0fafadb9b8 Supports type conversion from bool or number to string 2019-10-29 16:23:26 +09:00
Masaaki Goshima
13e2ab983c Supports decoding with inline tag and conflict key 2019-10-28 22:44:21 +09:00
Masaaki Goshima
e3cad23cac Supports inline option for decoding 2019-10-28 22:12:23 +09:00
Masaaki Goshima
15aa70adaa Support gopkg.in/go-playground/validator.v9 based validation for YAML document 2019-10-26 10:08:44 +09:00
Masaaki Goshima
a5018e77d1 Rename Marshaler and Unmarshaler 2019-10-26 07:19:18 +09:00
Masaaki Goshima
db05e7d002 Support Unmarshaler interface compatible with encoding/json package
- Refactor by AST based decoding
2019-10-24 23:54:17 +09:00
Masaaki Goshima
0c4eb3855b
Merge pull request #7 from goccy/feature/add-api-compatible-with-go-yaml
Supports Marshaler and Unmarshaler
2019-10-24 17:33:03 +09:00
Masaaki Goshima
fc58867f02 Support decode using Unmarshaler 2019-10-24 17:18:03 +09:00
Daisuke Maki
d6a5e04d34 PoC for #4 2019-10-24 11:07:40 +09:00
Masaaki Goshima
17d7c6814e Use (go-yaml/errors).Wrapf instead of xerrors.Errorf 2019-10-23 16:40:26 +09:00
Masaaki Goshima
90c8d4c26b Support merge key ( << ) for Decoder 2019-10-21 14:54:26 +09:00
Masaaki Goshima
293ee9861c Add document 2019-10-21 12:53:30 +09:00
Masaaki Goshima
14ebb2f291 Remove ast.MappingNode 2019-10-21 02:55:09 +09:00
Masaaki Goshima
4459e2201a Fix bt gofmt -s and misspell 2019-10-21 01:28:48 +09:00
Masaaki Goshima
7ec36b5121 Refactor Encoder 2019-10-20 20:50:43 +09:00
Masaaki Goshima
8b6f1c6325 Support implicit declaration for anchor and alias 2019-10-20 13:31:29 +09:00
Masaaki Goshima
de8cc9f12b Support automatically alias detection 2019-10-20 13:06:32 +09:00
Masaaki Goshima
79017b4e1c Support encoding with Anchor or Alias 2019-10-19 22:02:15 +09:00
Masaaki Goshima
dce0f43e97 Add Encoder API 2019-10-19 18:29:27 +09:00
Masaaki Goshima
83f8d55fd1 Support reference to anchor defined by the other file 2019-10-18 15:20:09 +09:00
Masaaki Goshima
ae67570d98 Support Anchor and Alias 2019-10-18 14:27:49 +09:00
Masaaki Goshima
c9d06847f5 Add Unmarshal test 2019-10-18 13:05:36 +09:00
Masaaki Goshima
1abaf8be5e Support decoding for struct type 2019-10-18 12:55:38 +09:00
Masaaki Goshima
c586811095 Add prototype of yaml.Decoder 2019-10-18 00:01:25 +09:00