Skip to content
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

Updating data type constraints #1174

Merged
merged 7 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Thankyou! -->
4. Added new enumeration items to `account.type_id`. #1166
5. Cleaned up event class definition files, removed /includes dir, simplified definition of `base_event`. #1167, #1171
6. Added new `file` enum to `osint.type_id`. #1168
7. Relaxed data-type constraints for `file_hash_t`, `resource_uid_t` & `string_t`. Fixed regex for `datetime_t`. #1174

## [v1.3.0] - August 1st, 2024

Expand Down
10 changes: 4 additions & 6 deletions dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -4849,7 +4849,7 @@
},
"types": {
"caption": "Data Types",
"description": "The predefined data types. The data type specifies what kind of data a value can have.",
"description": "The data types available in OCSF. Each data type specifies constraints in the form regular expressions, max lengths or value limits. Implementors of OCSF should ensure they abide to these constraints.",
"attributes": {
"boolean_t": {
"caption": "Boolean",
Expand All @@ -4867,8 +4867,8 @@
},
"datetime_t": {
"caption": "Datetime",
"description": "The Internet Date/Time format as defined in <a target='_blank' href='https://www.rfc-editor.org/rfc/rfc3339.html'>RFC-3339</a>. For example <code>1985-04-12T23:20:50.52Z</code>.",
"regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(Z|[\\+-]\\d{2}:\\d{2})?$",
"description": "The Internet Date/Time format as defined in <a target='_blank' href='https://www.rfc-editor.org/rfc/rfc3339.html'>RFC-3339</a>. For example:<br> <code>2024-09-10T23:20:50.520Z</code>,<br> <code>2024-09-10 23:20:50.520789Z</code>.",
"regex": "^\\d{4}-\\d{2}-\\d{2}[Tt]\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?([Zz]|[\\+-]\\d{2}:\\d{2})?$",
"type": "string_t",
"type_name": "String"
},
Expand All @@ -4881,10 +4881,10 @@
"type_name": "String"
},
"file_hash_t": {
"max_len": 64,
"observable": 8,
"caption": "Hash",
"description": "Hash. A unique value that corresponds to the content of the file, image, ja3_hash or hassh found in the schema. For example MD5: <code>3172ac7e2b55cbb81f04a6e65855a628</code>.",
"regex": "^[a-fA-F0-9]+$",
"type": "string_t",
"type_name": "String"
},
Expand Down Expand Up @@ -4956,15 +4956,13 @@
"type_name": "String"
},
"resource_uid_t": {
"max_len": 64,
"observable": 10,
"caption": "Resource UID",
"description": "Resource unique identifier. For example, S3 Bucket name or EC2 Instance ID.",
"type": "string_t",
"type_name": "String"
},
"string_t": {
"max_len": 65535,
"caption": "String",
"description": "UTF-8 encoded byte sequence."
},
Expand Down
Loading