api7 / jsonschema

Pure Lua JSON schema validator for Lua/LuaJIT
https://www.apiseven.com/
Apache License 2.0
119 stars 27 forks source link

about 200 local variables limitation #40

Closed RocFang closed 3 years ago

RocFang commented 3 years ago

Hello, @spacewander ,

The problem of 200 local variables limitation often occur to us when the json schema file geting bigger. error info like:

main function has more than 200 local variables

I found 2 relative record from other repo:

  1. https://github.com/Tieske/lua-resty-ljsonschema/pull/2
  2. https://github.com/jdesgats/ljsonschema/issues/10

can we do this workaround too? thanks.

membphis commented 3 years ago

welcome PR, we can cherry-pick the commit ^_^

RocFang commented 3 years ago

@membphis I have made a pr, https://github.com/api7/jsonschema/pull/41

thanks for review.