Skip to content

Plan for adding and deprecating new API versions #477

@jhollinger

Description

@jhollinger

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe

As we work on adding a V2 API, we'll want a way to (eventually) remove the old, make the new one the default, add future ones, etc.

Describe the feature you'd like to see implemented

One approach would be to make Blueprinter::Base an alias to the "default" API version. So we'd move the existing code to Blueprinter::V1::Base and point Blueprinter::Base there. Blueprints could inherit from either name.

When we add V2, it would live at Blueprinter::V2::Base. When we drop V1, we'd point Blueprinter::Base at Blueprinter::V2::Base.

Other schemes are also possible - please suggest!

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    on-holdquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions