Fix #valid? API, specs.