Tech recruiter here. What you are saying fits neatly with my observation that during a bull market the specialists tend to do great, amazing compensation, lots of contracting options.
When the market turns these are the first to be downsized because they are very expensive. The generalists are more sought after because firms try to produce the same output with fewer resources, and for this you need the jack-of-all-trades types.