shivanshs9 / drf-problems Goto Github PK
View Code? Open in Web Editor NEWIt introduces "Problem Details" in the HTTP APIs.
License: MIT License
It introduces "Problem Details" in the HTTP APIs.
License: MIT License
Using mixins are needlessly ugly for very customized views. Decorators would be a nice way.
Write tests for the ErrorDocumentationView for both behaviors:
Code a sample view which uses permissions derived from BaseProblemPermission class and throws a registered exception. Write tests with this view to test the following behaviors:
The latest release is not working with Django 4 due to 65dcccf
Would it be possible to release a version including the fix above?
The setting necessary for the "problem description url" is explained here https://github.com/shivanshs9/drf-problems/#installation .
And if I follow those directions I get a error url in the returned JSON ...
... but I don't understand how to take this further. How can I control what the url is for a given situation ? Any further explanation would be appreciated. Thanks.
The rfc defines an instance attribute too to my understanding : https://www.rfc-editor.org/rfc/rfc7807#section-3.1
How do I add it to the exceptions?
Looking at the code doesn't seem to be defined?
Is there a way to add custom attributes?
Write tests with a sample view to test all of the following behaviors:
Solution is to remove the six dependency and migrate fully to using python 3. Tested with Django 4.1 and python 3.10
If there is a serializer data validation error on a field title
, status
or type
, the validation message will be overwritten by drf-problems which forces exception meta info into those fields.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.