Right, we will probably miss some metatype defintions, and I guess that's ok.
I would start with only looking at the metatype definitions included in the bundles, and then trying to match them to the configurations defined in the file. The safe things to report (as errors?) would be configuration properties that: 1. Are defined for a component with a metatype 2. Do not match the list of properties defined in the metatype How does that sound? Robert On Tue, 2019-12-17 at 10:50 +0100, Carsten Ziegeler wrote: > Makes definitely sense, the big question is where you get the > metadata > from. In the easiest case you have a bundle in your feature which > contains the metadata XML files. But such a bundle could also > "manually" > create the metadata at runtime using the metadata API (we have some > cases like the Apache Felix Jetty implementation for example). > But you also might have a configuration where there is no bundle > declaring the metadata in any way in your feature; either because > there > is no metadata (lazy developer) or it is declared in another feature > (ok, this might be a rare use case and we can probably ignore it) > > Regards > Carsten > > On 16.12.2019 15:56, David Bosschaert wrote: > > Hi Robert, > > > > That sounds like a very nice addition. I think it could be an > > additional > > Feature Model analyser, that runs as part of the set of analysers. > > I don't think it was considered before, could you please file an > > issue for > > it? > > > > Best regards, > > > > David > > > > On Mon, 16 Dec 2019 at 13:28, Robert Munteanu <romb...@apache.org> > > wrote: > > > > > Hi, > > > > > > Being a sloppy typist, I often get the configuration values wrong > > > in > > > feature model files. I am thinking that validating the > > > configuration > > > values defined in a feature model file against the metatype > > > definition > > > of the matching components would help a lot. > > > > > > Is there something like this planned? If not, would it make sense > > > to > > > add it to the roadmap? > > > > > > Thanks, > > > Robert > > > > > >