operation-missing-api-version
@azure-tools/typespec-azure-core/operation-missing-api-versionOperations need an api version parameter.
Ensure all operations have an apiVersion parameter.
Impact
Section titled “Impact”- Area: API, SDK
An operation without an api-version parameter cannot evolve across api-versions.
LintDiff Equivalent
Section titled “LintDiff Equivalent”This rule corresponds to the LintDiff rule ApiVersionParameterRequired.
❌ Incorrect
Section titled “❌ Incorrect”op createPet(pet: Pet): void;✅ Correct
Section titled “✅ Correct”op createPet(pet: Pet, ...Azure.Core.Foundations.ApiVersionParameter): void;Suppression
Section titled “Suppression”Do not suppress unless it is a false positive. Use the standard operation templates.