Skip to content

Clarify array merge semantics near the first mention of recursive merge #63

Description

@dakusui

Currently the documentation explains that:

“The merge is recursive for nested objects”

earlier than the section that explains array behavior.

Because “recursive merge” is often interpreted as “deep merge” (including arrays) in JSON/YAML tooling ecosystems, readers may initially assume arrays are merged recursively or index-wise.

Later, the docs correctly clarify:

“arrays are not merged—a child array replaces the parent array completely.”

Suggestion:

Mention object vs array semantics together near the first explanation of inheritance/merge behavior.

For example:

Objects are recursively merged.
`Arrays` are never merged; they are always replaced entirely by the child value.

Or a small table:

Type Behavior
Object Recursive merge
Array Replace entirely
Scalar Override

This would make the behavior easier to understand on first read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions