Comments (7)
As explained in the documentation the converter applies to aliases of scalars, strings and blobs. bond.GUID
is a Bond defined struct.
from bond.
It seems pretty aggressive to close this issue so fast.
-
It would be better if there were an explicit compile time or runtime failure. It was very difficult to track down the root cause of this failure.
-
Why not expand support to structs? It seems like this could be considered an "enhancement" request instead of being closed outright.
from bond.
1 is a fair point but that should be a different issue with an appropriate title. BTW, alias using guid = bond.GUID
is perfectly fine. What is not fine is mapping such an alias to a type (System.DateTime
in your case) that is not Bond serializable (i.e. is not annotated with [Bond.Schema]
). We will not support copying from one object to another (which is what BondTypeAliasConverter
does) to support such mapping. If we wanted to support serializing classes/structs that are not annotated with Bond attributes we would take a different approach (user defined reflection provider) that doesn't require a copy during de/serialization.
from bond.
If I just change the title on this one can you repurpose it for 1 (I'm not sure if it's possible to re-open these)?
I think I follow what you're saying for 2. Feel free to put the scenario on the backlog. System.Guid is definitely the most useful representation of a Guid. My only real option with the current features is to map it to a "string", right?
from bond.
string
or blob
, depending if you care about small binary representation or human readable text representation.
from bond.
Great. Thanks.
from bond.
What's the state of the issue?
I return result from the service via "Message.From(...)" and a single place where I see the exception out of the serialization is a GRPC console log.
So I get no exceptions on the server side.
from bond.
Related Issues (20)
- [ci] CI image Dockerfile needs to be paramatarized on FROM registry
- This repo is missing important files
- c#: Add ToString() implementations for compiled bond objects HOT 1
- Merge API support for C#? HOT 2
- Bond generated headers don't work for clang in c++20 HOT 2
- Include enums in Bond runtime schema HOT 1
- cmake/Config.cmake looks for the EOLed Python-2.7 HOT 1
- Deserialization/serialization under Linux is 7x-10x slower than Windows HOT 2
- [C#] gbc.exe: Exec format error inside mcr.microsoft.com/dotnet/sdk:latest docker image. HOT 3
- "openFile: does not exist (No such file or directory)" on Linux HOT 2
- [C#] Deserializing bond-like strings into dynamic type HOT 2
- Linux build error - ghc: panic! HOT 4
- Support dotnet trimming HOT 5
- Target `netstandard2.0` for c# HOT 1
- C++: GCC: Double/Float comparison warning HOT 2
- Is this project still being maintained? HOT 2
- emit #nullable enable pragma in generated C# code
- bond on aarch64 is failing with unsupported LLVM
- [msvc][cpplatest] bond failed to build with msvc option /std:c++latest due to error C2027 and error C2061
- Upgrade to Stack lts-22.12 for aarch64 support
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 bond.