Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace API integer API choice values with slugs #3732

Merged
merged 48 commits into from
Dec 5, 2019

Conversation

jeremystretch
Copy link
Member

Fixes: #3569

Replaces all numeric choices with more human-friendly slugs. For example, the dcim.Site status field changes from

    "status": {
        "value": 1,
        "label": "Active"
    },

to

    "status": {
        "value": "active",
        "label": "Active"
    },

For backward-compatibility purposes, the legacy integer values will still be accepted on write through the v2.7 release cycle.

@jeremystretch jeremystretch merged commit dcb2c47 into develop-2.7 Dec 5, 2019
@jeremystretch jeremystretch deleted the 3569-api-choice-slugs branch December 5, 2019 22:53
@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant