Skip to content

Conversation

@Gijsreyn
Copy link
Contributor

PR Summary

This pull request adds the shallowMerge function, including its reference documentation. Also documented the tryWhich().

PR Context

Partially addresses #57.

Comment on lines +62 to +67
[shallowMerge(
createArray(
createObject('host', 'localhost', 'port', 8080),
createObject('port', 9000, 'ssl', true())
)
)]
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to define the array of objects as a variable making it easier to visualize. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-object#example-9, but I like your values better to show a real example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this a nit comment?

@Gijsreyn Gijsreyn force-pushed the gh-57/main/add-shallowmerge-function branch from 132908a to bb96f85 Compare November 22, 2025 01:52
@Gijsreyn Gijsreyn requested a review from SteveL-MSFT November 22, 2025 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants