Skip to content

Commit 6f7f19d

Browse files
committed
Update CVE data at README
#24
1 parent d33e151 commit 6f7f19d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ A collection of Value Objects to save time by generalizing types and format vali
2525
* [Nullable Uuid4](#nullable-uuid4)
2626
* [Date value-objects](#date-value-objects)
2727
* [ISO Date](#iso-date)
28+
* [Security value-objects](#security-value-objects)
29+
* [CVE](#cve)
2830

2931
# Value-objects
3032

@@ -169,3 +171,17 @@ my_date = IsoDate('2023-08-15T04:55:12.076Z')
169171
# Getting raw value
170172
my_date.value() # returns -> '2023-08-15T04:55:12.076Z'
171173
```
174+
175+
## Security value-objects
176+
177+
### CVE
178+
179+
```python
180+
from pyvalueobjects import Cve
181+
182+
# Creation
183+
my_cve = Cve('CVE-2014-9418')
184+
185+
# Getting raw value
186+
my_cve.value() # returns -> 'CVE-2014-9418'
187+
```

0 commit comments

Comments
 (0)