[BUG]: `render_json` should only accept Dict/TypeDict type of values.
See original GitHub issueDescribe the bug
In some places of the codebase, we are passing list type of values to the render_json
method which forces us to use broader type for the arguments of render_json
.
Places where these list values are passed: https://github.com/oppia/oppia/blob/f8a8d680c6f95dfc3c63a003484177ac06e4ce21/core/controllers/learner_group.py#L954 https://github.com/oppia/oppia/blob/f8a8d680c6f95dfc3c63a003484177ac06e4ce21/core/controllers/learner_group.py#L314
Expected Behavior
render_json
method should only accept Dict/TypedDict values not list types of values.
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Bugs in render-json command? #2189 - GitHub
It seems like the render-json command has a couple bugs: It doesn't output any info about dependency blocks.
Read more >ruby on rails - render :json does not accept options
I've done something similar with render :json . This is what worked for me: ... And then you can write in your controller...
Read more >How to Display JSON Key Value Pairs in ReactJS - Pluralsight
Want to learn how to display key and value pairs from JSON in ReactJS? Check out this guide for a thorough, but succinct...
Read more >Layouts and Rendering in Rails - Ruby on Rails Guides
You can render the default view for a Rails template, or a specific template, or a file, or inline code, or nothing at...
Read more >Render JSON - TIBCO Product Documentation
Render JSON activity takes XML data and renders it as a JSON string. This topic is shared with ... The default value in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok understood, Thanks for responding.
On Wed, 23 Nov 2022, 17:32 sahil jhangar, @.***> wrote:
Really sorry @Ashism766, I have no clue about this one.
From my perspective, there is only one criterion, quality contributions to the organization.