Comments (3)
JSON, as a format, does not have a way to encode arbitrary binary data. That's a limit of the format, not the API.
from sandman2.
@jeffknupp then maybe have default serialization for binary data properties turned off? I'm guessing that you're going to have other devs who want to get user data from databases that use bcrypt to protect passwords.
I'm assuming this is something I can get around by extending sandman2.model.Model?
from sandman2.
Yes, the proper way to address this would be to extend sandman2.model.Model
. I'm 👎 on excluding types from serialization as it would either require a catch-all rule that would be difficult to maintain or an explicit list of (database-specific) excluded types which would be even more error-prone.
from sandman2.
Related Issues (20)
- Errors generated by table names containing spaces; unable to start sandman2ctl HOT 1
- Seems like `exclude_tables` not working in call to get_app
- YOUR WEBSITE IS DOWN!
- AWS ECS
- How to use this with ForeignKey table
- howto apply sqlalchemy 1.4.15 HOT 1
- Where is the package?
- AWS ECS - Deploy as a lambda container image
- Is it possible to serialize the models/code that sandman2 generates?
- how to find a datetime value?
- ValueError: The name 'admin' is already registered for a different blueprint. Use 'name=' to provide a unique name.
- Sandman Error for composite primary keys
- Is it possible to get access to stored procedures and functions?
- 'LocalStack' object has no attribute '__ident_func__' error on launch HOT 2
- About MS SQL HOT 1
- Support linking via foreign indices
- Generate swagger document for exposed REST API
- output from server hard to read under Microsoft Windows
- server fails to start due to various import failures
- export undocumented
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 sandman2.