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

Use JSON instead of #inspect to include cask container in API #14303

Merged
merged 1 commit into from Dec 29, 2022

Conversation

Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Dec 29, 2022

This PR updates the cask JSON API's container entry to be actual JSON instead of just a ruby #inspect string.

Before:

{
  "container": "{:type=>:naked}"
}

After:

{
  "container": {
    "type": "naked"
  }
}

This is technically a breaking API change, but I can't imagine anyone is using the current system since it's in this weird format. If we get a complaint, we can revert. I'm marking this as critical since it is blocking the next step in the API project (loading casks directly from the API).

@Rylan12 Rylan12 added the critical Critical change which should be shipped as soon as possible. label Dec 29, 2022
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@Rylan12 Rylan12 merged commit 55a8c02 into Homebrew:master Dec 29, 2022
@Rylan12 Rylan12 deleted the cask-json-api-container branch December 29, 2022 19:33
@github-actions github-actions bot added the outdated PR was locked due to age label Jan 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants