Skip to content

Infer non-config types in extend and replace operators #2768

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

Merged
merged 1 commit into from
Dec 10, 2022

Conversation

dominiklohmann
Copy link
Member

Previously, using an address value in the extend or replace operators did not work. This is now fixed, and will produce the proper type as long as it can be inferred from the data. This bug applied to all types that were not also used as types in configuration, i.e., address, subnet, pattern, and map.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Dec 7, 2022
@dominiklohmann dominiklohmann force-pushed the topic/extend-replace-type-infer branch from 076dc23 to b664fa1 Compare December 7, 2022 10:38
Copy link
Contributor

@dispanser dispanser left a comment

Choose a reason for hiding this comment

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

Works as advertised, except for encorcing the inferred type to be a string via wrapping in doublequotes does not seem to work as described.

@dominiklohmann dominiklohmann added blocked Blocked by an (external) issue and removed blocked Blocked by an (external) issue labels Dec 8, 2022
@dominiklohmann dominiklohmann force-pushed the topic/extend-replace-type-infer branch from b664fa1 to 97ecf65 Compare December 10, 2022 12:44
Previously, using an address value in the extend or replace operators
did not work. This is now fixed, and will produce the proper type as
long as it can be inferred from the data. This bug applied to all types
that were not also used as types in configuration, i.e., address,
subnet, pattern, and map.
@dominiklohmann dominiklohmann force-pushed the topic/extend-replace-type-infer branch from 97ecf65 to c9591fd Compare December 10, 2022 12:51
@dominiklohmann dominiklohmann merged commit e69b696 into master Dec 10, 2022
@dominiklohmann dominiklohmann deleted the topic/extend-replace-type-infer branch December 10, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants