diff --git a/docs/cloud-workload-security/README.md b/docs/cloud-workload-security/README.md index efe33c1c87c76..c3bca36160d54 100644 --- a/docs/cloud-workload-security/README.md +++ b/docs/cloud-workload-security/README.md @@ -75,7 +75,7 @@ The Cloud Workload Security (CWS) part of the Agent sends events to the backend. ### Editing files -To change the documentation of one of the fields in the schema, edit the correct field in `pkg/security/probe/serializers.go`. The documentation of a field is added through the `jsonschema_description` tag of the field. +To change the documentation of one of the fields in the schema, edit the correct field in `pkg/security/probe/serializers.go`. The documentation of a field is added through the commont of the field. For example: diff --git a/pkg/security/probe/serializers.go b/pkg/security/probe/serializers.go index 4d608d317e423..a94c8f2a55c3a 100644 --- a/pkg/security/probe/serializers.go +++ b/pkg/security/probe/serializers.go @@ -207,9 +207,9 @@ type ProcessSerializer struct { // Indicator of environments variable truncation EnvsTruncated bool `json:"envs_truncated,omitempty"` // Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program) - IsThread bool `json:"is_thread,omitempty" jsonschema_description:""` + IsThread bool `json:"is_thread,omitempty"` // Indicates whether the process is a kworker - IsKworker bool `json:"is_kworker,omitempty" jsonschema_description:""` + IsKworker bool `json:"is_kworker,omitempty"` } // ContainerContextSerializer serializes a container context to JSON @@ -490,8 +490,10 @@ type BindEventSerializer struct { // ExitEventSerializer serializes an exit event to JSON // easyjson:json type ExitEventSerializer struct { - Cause string `json:"cause" jsonschema_description:"Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)"` - Code uint32 `json:"code" jsonschema_description:"Exit code of the process or number of the signal that caused the process to terminate"` + // Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED) + Cause string `json:"cause"` + // Exit code of the process or number of the signal that caused the process to terminate + Code uint32 `json:"code"` } // MountEventSerializer serializes a mount event to JSON