Skip to content

Commit

Permalink
Add NULL to readme (#17076)
Browse files Browse the repository at this point in the history
* null to read me

* Update sdk/core/azure-core/README.md
  • Loading branch information
rakshith91 authored Mar 5, 2021
1 parent 0bc271d commit 6b559bf
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion sdk/core/azure-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,21 @@ class MyCustomEnum(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
BAR = 'bar'
```

#### Null Sentinel Value

A falsy sentinel object which is supposed to be used to specify attributes
with no data. This gets serialized to `null` on the wire.

```python
from azure.core.serialization import NULL

assert bool(NULL) is False

foo = Foo(
attr=NULL
)
```

## Contributing
This project welcomes contributions and suggestions. Most contributions require
you to agree to a Contributor License Agreement (CLA) declaring that you have
Expand All @@ -198,4 +213,4 @@ or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
additional questions or comments.

<!-- LINKS -->
[package]: https://pypi.org/project/azure-core/
[package]: https://pypi.org/project/azure-core/

0 comments on commit 6b559bf

Please sign in to comment.