-
Notifications
You must be signed in to change notification settings - Fork 80
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
Enums & Literals as map keys #1178
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to d44b23d in 1 minute and 0 seconds
More details
- Looked at
1509
lines of code in32
files - Skipped
2
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_md8Qh1rwWebIgI01
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on c8fcd92 in 36 seconds
More details
- Looked at
692
lines of code in14
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. integ-tests/typescript/test-report.html:260
- Draft comment:
The test 'should work with nested classes' is failing due to a connection error. This seems unrelated to the changes in this PR and might be an issue with the test environment or external dependencies. - Reason this comment was not posted:
Confidence changes required:50%
The test case 'should work with nested classes' is failing due to a connection error. This is likely not related to the changes in the PR, but rather an issue with the test environment or external dependencies.
Workflow ID: wflow_GV5q4zs5tFPxeeK2
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 85c172e in 17 seconds
More details
- Looked at
37
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. integ-tests/ruby/test_functions.rb:75
- Draft comment:
The function nameInOutLiteralStringUnionMapKey
in the test does not match the function name in the BAML file. Ensure the function names are consistent across files. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_G667tOcqLEfI8rDt
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 173a1e3 in 25 seconds
More details
- Looked at
118
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. integ-tests/typescript/test-report.html:260
- Draft comment:
Add a newline at the end of the file for better formatting and adherence to best practices. - Reason this comment was not posted:
Confidence changes required:10%
The HTML file lacks a newline at the end of the file, which is a minor formatting issue but considered a best practice to include.
Workflow ID: wflow_OgAWmMWoYISlAVAF
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 3f24ec5 in 20 seconds
More details
- Looked at
72
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. engine/baml-lib/baml/tests/validation_files/class/secure_types.baml:28
- Draft comment:
The updated error message correctly reflects the new validation rule that maps may have strings, enums, or literal strings as keys. Ensure this change is consistently applied across all relevant error messages. - Reason this comment was not posted:
Confidence changes required:10%
The error message updates in the comments are consistent with the changes made in the PR to support enums and literal strings as map keys. The error messages now correctly reflect the new validation rules.
Workflow ID: wflow_uoLnvaY6RdIP9cKE
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on c7742fd in 19 seconds
More details
- Looked at
68
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. integ-tests/typescript/test-report.html:260
- Draft comment:
Add a newline at the end of the file for better style consistency. - Reason this comment was not posted:
Confidence changes required:10%
The HTML file lacks a newline at the end, which is a minor style issue but considered a best practice to fix.
Workflow ID: wflow_me2la0NtHSdZZrvQ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Issue #1050
Added support for enums and literal strings in map keys:
Literal integers are more complicated since they require maps to support int keys. See #1180.
Important
Add support for enums and literal strings as map keys in BAML, with updated validation, coercion logic, and tests.
mod.rs
andtypes.rs
.map_enums_and_literals.baml
andmap_types.baml
to verify new map key functionality.test_functions.py
andinteg-tests.test.ts
to include cases for enum and literal string map keys.error.rs
to reflect new map key types.async_client.py
,sync_client.py
, andclient.rb
to support new map key types.This description was created by for c7742fd. It will automatically update as commits are pushed.