Skip to content

operation-missing-api-version

Full name
@azure-tools/typespec-azure-core/operation-missing-api-version

Ensure all operations have an apiVersion parameter.

Seeing this error is also a sign that you are not using the Azure Standard templates. First double check why you cannot use them.

❌ Incorrect

op createPet(pet: Pet): void;

✅ Correct

op createPet(pet: Pet, ...Azure.Core.Foundations.ApiVersionParameter): void;