hanqingwu commented on issue #10683:
URL: https://github.com/apache/apisix/issues/10683#issuecomment-1865782463
i have debug it, it's my patch. the bug is in tinyyaml.
diff --git a/tinyyaml.lua b/tinyyaml.lua
index afb04a8..f637c6e 100644
--- a/tinyyaml.lua
+++ b/tinyyaml.lua
@@ -337,10 +337,17 @@ function Parser:parseflowstyle(line, lines)
if not s then
error('invalid flowstyle line: '..line)
end
- tinsert(stack, {v=s, t='s'})
+
+ n = tonumber(s)
+ if n and not startswith(line, '"')then
+ tinsert(stack, {v=n, t='s'})
+ else
+ tinsert(stack, {v=s, t='s'})
+ end
line = rest
end
end
+
return stack[1].v, line
end
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]