[ 
https://issues.apache.org/jira/browse/CAMEL-23418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino updated CAMEL-23418:
-------------------------------------
    Fix Version/s: 4.21.0

> camel-ocsf: Upgrade OCSF schema to 1.8.0
> ----------------------------------------
>
>                 Key: CAMEL-23418
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23418
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.21.0
>
>
> The camel-ocsf data format currently bundles JSON schemas generated from OCSF 
> (Open Cybersecurity Schema Framework) version 1.7.0. OCSF 1.8.0 has been 
> released and the component should be upgraded to track the new version.
> h3. Current state
> - All 103 schemas in {{src/main/resources/schema/}} reference 
> {{https://schema.ocsf.io/1.7.0/...}}
> - {{src/main/script/generate-ocsf-schemas.py}} defaults to {{--version 1.7.0}}
> - {{src/main/docs/ocsf-dataformat.adoc}} mentions 1.7.0 in the update 
> instructions and advertises 34 event classes + 68 reusable objects
> h3. Proposed work
> # Update the default {{--version}} argument in {{generate-ocsf-schemas.py}} 
> to {{1.8.0}}.
> # Regenerate schemas: {{python3 generate-ocsf-schemas.py --version 1.8.0 
> --output ../resources/schema --clean}}.
> # Review the diff for new/renamed/removed event classes against 
> {{CLASSES_TO_GENERATE}} and reusable objects against {{OBJECTS_TO_GENERATE}} 
> / {{PROPERTY_TO_OBJECT_MAP}} in the script; add any new ones introduced by 
> 1.8.0.
> # Update {{src/main/docs/ocsf-dataformat.adoc}} (version reference and 
> class/object counts).
> # Run {{mvn clean test}} to confirm POJOs regenerate cleanly via 
> jsonschema2pojo and existing tests still pass against the new model.
> h3. References
> - OCSF 1.8.0 release: https://schema.ocsf.io/
> - {{ocsf-json-schema}} Python package on PyPI
> _Reported by Claude Code on behalf of Andrea Cosentino_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to