Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH v3 0/2] lua-yaml null/boolean fixes
@ 2019-02-05  3:30 Alexander Turenko
  2019-02-05  3:30 ` [tarantool-patches] [PATCH v3 1/2] lua-yaml: verify arguments count Alexander Turenko
  2019-02-05  3:30 ` [tarantool-patches] [PATCH v3 2/2] lua-yaml: fix strings literals encoding in yaml Alexander Turenko
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Turenko @ 2019-02-05  3:30 UTC (permalink / raw)
  To: Vladislav Shpilevoy; +Cc: Alexander Turenko, tarantool-patches

The patchset improves validation of arguments in yaml.encode() and
yaml.decode() functions and fixes encoding of string values like 'null',
which should be quoted.

The main change from the previous version is dropping the last patch,
which was about encoding an empty document as null to better fit the
YAML standard and corresponding decoding changes, but breaks backward
compatibility in some sense. Also I have added API test cases for the
first patch and have fixed Vlad's comments about the code.

AKhatskevich (1):
  lua-yaml: verify arguments count

Alexander Turenko (1):
  lua-yaml: fix strings literals encoding in yaml

 test/app-tap/console.test.lua | 21 ++++++--
 test/app-tap/yaml.test.lua    | 74 ++++++++++++++++++++++++++-
 third_party/lua-yaml/lyaml.cc | 95 +++++++++++++++++++++++++++--------
 3 files changed, 162 insertions(+), 28 deletions(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-05  3:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-05  3:30 [tarantool-patches] [PATCH v3 0/2] lua-yaml null/boolean fixes Alexander Turenko
2019-02-05  3:30 ` [tarantool-patches] [PATCH v3 1/2] lua-yaml: verify arguments count Alexander Turenko
2019-02-05  3:30 ` [tarantool-patches] [PATCH v3 2/2] lua-yaml: fix strings literals encoding in yaml Alexander Turenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox