prune

fun prune(pruningRules: PruningRules): Schema

Returns a copy of this schema that retains only the types and services selected by pruningRules, plus their transitive dependencies.