Find YAML properties

Apache 2.0

Find YAML properties that match the specified propertyKey. Expects dot notation for nested YAML mappings, similar to how Spring Boot interprets application.yml files.

org.openrewrite.yaml.search.FindProperty

Required

The key to look for. Glob is supported.

Optional

relaxedBindingBoolean

Whether to match the propertyKey using relaxed binding rules. Defaults to true. If you want to use exact matching in your search, set this to false.

If provided, only properties specified in propertyKey having this value will be found. Works only for scalar values

mod run . --recipe=org.openrewrite.yaml.search.FindProperty \ -P propertyKey='management.metrics.binders.*.enabled'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.