interagent / prmd

JSON Schema tools and doc generation for HTTP APIs
MIT License
2.1k stars 172 forks source link

Fix broken rendering in case of Array with +oneOf+ #348

Open tsrivishnu opened 3 years ago

tsrivishnu commented 3 years ago

If the schemas provided inside oneOf of array items is not a ref, the rendering fails because it tries .upcase on an Integer.

tsrivishnu commented 3 years ago

@geemus I didn't add any failing schema examples because it's obvious that .to_s can't be used in an Integer. Please let me know if you like to see examples. Otherwise, would appreciate it if you could merge this and release a minor/patch version.