JieTrancender commented on issue #950:
URL: 
https://github.com/apache/apisix-dashboard/issues/950#issuecomment-739147180


   maybe i know what things happened.
   
   in **apisix** project **script** filed used to make lua code by using 
loadstring function, code in this:
   
   
https://github.com/apache/apisix/blob/2472db56c8adbd1495707fffc0e3e4f00a8cab88/apisix/admin/routes.lua#L136-L146
   
   so the type of **script** is string, schema is `script = {type = "string", 
minLength = 10, maxLength = 102400}`. but in this test, **script** is a object. 
convert it to go structure, and then make string for lua code. code in this:
   
   
https://github.com/apache/apisix-dashboard/blob/c574813eea82edcd6d95a2ea0f8857b736049717/api/internal/handler/route/route.go#L220-L237
   
   answer is clear, the route schema is not suitable. maybe we should use new 
schema which different from **apisix** project, but is difficut to maintain in 
the future, so i think we should keep it consistent.
   
   what do you think?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to