Comments (1)
Just simplify the expression:
keys = item.keys()
if 'type' not in keys and 'id' not in keys:
# do something
from sqlalchemy-jsonapi.
Related Issues (20)
- Query Parameters not implemented? HOT 14
- 5.0.0 Changes HOT 3
- Incomplete support for SQLAlchemy types HOT 5
- Library converts underscores to hyphens against spec HOT 3
- Getting a TypeError exception on a post_collection call HOT 1
- Getting an AttributeError when using validates decorator with AssertionError HOT 1
- raising an error class does not print the error details HOT 1
- Unclear error message on post_collection with OneToMany relationship
- TypeError occurs when formatting detail when raising BadRequestError with garbage relationships in post_collection HOT 3
- BadRequestError is not being raised succesfully when sending garbage attributes in patch_resource HOT 2
- Post_collection is not raising BadRequestError when payload relationships data is not array of dictionaries
- Delete_relationship does not raise BadRequestError when data is not array of dictionaries
- Post_relationship is not raising BadRequestError when payload data is not array of dictionaries
- Patch_relationship is not raising BadRequestError when payload data is not array of dictionaries
- Library not serializing 'id' as string which goes against spec
- Post_collection is not raising BadRequestError when payload relationships is not a dictionary
- Post_collection is not raising BadRequestError when payload relationships key's value are not a dictionary
- relationship_descriptor broken due to c&p error
- JSONAPI initializer uses deprecated SQLAlchemy Base method _decl_class_registry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlalchemy-jsonapi.