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

Make property container type parsing explicit #15963

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

kjac
Copy link
Contributor

@kjac kjac commented Apr 2, 2024

Prerequisites

  • I have added steps to test this contribution in the description below

Description

At this time, container types (groups and tabs) are known enum values on the serverside, but exposed as string values to the client. The idea behind this is that we'll likely set container types free later on, since they are really none of the server's concern. For now, though, we need to ensure proper container types for various reasons - nesting containers correctly for one.

This PR ensures that we are very explicit about parsing container types, and return meaningful errors if an invalid container type is supplied. This also includes incorrect casing.

Copy link
Contributor

@nikolajlauridsen nikolajlauridsen left a comment

Choose a reason for hiding this comment

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

Looks good and tests out good as well 🎉

@nikolajlauridsen nikolajlauridsen merged commit 70878f5 into v14/dev Apr 4, 2024
16 of 17 checks passed
@nikolajlauridsen nikolajlauridsen deleted the v14/fix/container-type-parsing branch April 4, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants