From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E0C1524F35 for ; Mon, 4 Feb 2019 22:30:24 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h8h9PJ132Y2c for ; Mon, 4 Feb 2019 22:30:24 -0500 (EST) Received: from smtp46.i.mail.ru (smtp46.i.mail.ru [94.100.177.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 8D8CD221C2 for ; Mon, 4 Feb 2019 22:30:24 -0500 (EST) From: Alexander Turenko Subject: [tarantool-patches] [PATCH v3 0/2] lua-yaml null/boolean fixes Date: Tue, 5 Feb 2019 06:30:15 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Vladislav Shpilevoy Cc: Alexander Turenko , tarantool-patches@freelists.org 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