diff --git a/pkg/apic/servicebuilder.go b/pkg/apic/servicebuilder.go index fba8b63fd..77fc9e7cb 100644 --- a/pkg/apic/servicebuilder.go +++ b/pkg/apic/servicebuilder.go @@ -312,6 +312,9 @@ func (b *serviceBodyBuilder) Build() (ServiceBody, error) { b.serviceBody.ResourceType = specProcessor.GetResourceType() b.serviceBody.specHash = fmt.Sprintf("%v", specParser.specHash) b.serviceBody.specVersion = specProcessor.GetVersion() + if b.serviceBody.specVersion == "" { + b.serviceBody.specVersion = b.serviceBody.Version + } // Check if the type is unstructured to gather more info