Skip to content

Commit

Permalink
Append ECS multifields in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Aug 23, 2024
1 parent df6341d commit 3aa46b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/fields/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,14 @@ func initDependencyManagement(packageRoot string, specVersion semver.Version, im
}
logger.Debugf("Imported ECS fields definition from external schema for validation (embedded in package: %v, stack uses ecs@mappings template: %v)", packageEmbedsEcsMappings, stackSupportsEcsMapping)

// ecs@mappings adds additional multifields that are not defined anywhere. Add them here to the expected mappings.
// Adding them also in cases where stackSupportsEcsMapping is false so these packages can be tested with versions
// of the stack that support ecs@mappings.
ecsSchema = appendECSMappingMultifields(ecsSchema, "")

schema = ecsSchema
}

// ecs@mappings adds additional multifields that are not defined anywhere.
// Adding them in all cases so packages can be tested in versions of the stack that
// add the ecs@mappings component template.
schema = appendECSMappingMultifields(schema, "")

return fdm, schema, nil
}

Expand Down

0 comments on commit 3aa46b2

Please sign in to comment.