-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of options #278
Labels
enhancement
New feature or request
Comments
@sehz somehow tests on mac are failed... all of them... even linux is green. It doesn't look like it related to suggested changes... Could you please join also and help with tests? |
it probably that it is using old nodejs version. @morenol can you update that test? |
It looks like it is happening on |
sehz
added
enhancement
New feature or request
and removed
help wanted
Extra attention is needed
labels
Nov 17, 2023
I guess it can be closed as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
Looks like supporting of option type (
Option<T>
) isn't fully implemented.Rust code
On JS side I'm expecting to do as well:
For example from
serde_json
perspectiveOption::None
equal toundefined
andnull
as well. Parsing goes without issues and withundefined
and withnull
and without definition of value on js-object.Reproducing
I'm also attaching sources of working example.
Suggestion
Value
Option::None
should have an equivalent on JS side -null
andundefined
as well. "From" rust world to JS worldOption::None
should be returned asnull
. Well in general my suggestion just to fitserde_json
node-bindgen_issue_options.zip
Many thanks in advance for your feedback.
The text was updated successfully, but these errors were encountered: