Skip to content

Sort date-based versions (YYYY-MM-DD) later than other versions (major.minor)#215

Draft
mikeharder wants to merge 5 commits intoAzure:mainfrom
mikeharder:not-latest-api-version
Draft

Sort date-based versions (YYYY-MM-DD) later than other versions (major.minor)#215
mikeharder wants to merge 5 commits intoAzure:mainfrom
mikeharder:not-latest-api-version

Conversation

@mikeharder
Copy link
Member

@mikeharder mikeharder commented Oct 7, 2025

Update: Going forward, a small number of specs may use the "v1/v2/..." versioning scheme (in parallel with date-based versions). To support these:

  1. Split versions into two groups. Date-based (YYYY-MM-DD) and semver-based (N.N, vN, vN.N, etc). If neither match, error?
  2. Sort date-based and sem-ver based (separately)
  3. Rule NOT_LATEST_API_VERSION_IN_DEFAULT_TAG should allow either the latest date-based or semver-based version.

We should also add this to spec-model, instead of special-casing in Avocado.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[avocado] Support "vN" version numbers

1 participant