New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output JSON format spec needed #35
Comments
There is a description of the output in the README: https://github.com/reactjs/react-docgen#result-data-structure (though granted it doesn't cover possible The second issue you linked to seems to be a bug in |
@fkling thanks, I missed this description, sorry! |
Well, it could be more extensive maybe :) I'd appreciate it if you could file a bug for the second issue you mentioned! |
About extensiveness: I think JSON schema could help. Then you would be able to verify that the JSON you return is really what you specified, and tool debelopers could use json-schema-random to generate examples and thus make them more reliable. |
I have already tried 2 tools based on
react-docgen
and they fail on my code, because the JSON produced byreact-docgen
is different that they expect (for my cases, it was because there was nodefaultValue
or becausetype.value
was a string). In my opinion, these bugs happen because there is no spec of the ouptput JSON format, with some good examples to test in such styleguide tools. Help would be appreciated a lot.The text was updated successfully, but these errors were encountered: