Skip to content

Support for {patch} level version digit to make possible YYYY-MM-DD version formats #2

@ndejong

Description

@ndejong

Hi -

I'd like to discuss support for the third SEMVER digit in the version format

If we make the patch level digit possible it is then possible to use versioning schemes that use the date in the same way that Amazon, Stripe and others do.

For example /2023-01-12/users/awesome where the instantiation of that might look something like

versions = versionize(
    app=app,
    prefix_format='/{major}-{minor:02}-{patch:02}',
    enable_latest=True,
    latest_prefix='/latest'
)

The goal is to create a pathway to adopt Stripe style versioning for users -
https://stripe.com/blog/api-versioning

Happy to write this as supply a PR, but wanted to ask first to make sure there are not other approaches or limitations that others might see beforehand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions