Valid data: { foo: 'a' }, { foo: 'a', bar: { foo: 'b' } } etc.
If you want to define schema that would allow more properties, the only way to do it without $merge or $patch keywords is to copy-paste and edit the original schema.
Using $merge keyword you can create an extended schema in this way:
In the majority of cases $merge format is easier to understand and to maintain. $patch can be used for extensions and changes that cannot be expressed using $merge, e.g. Adding an array value.
with property in keywords can also be a reference to a part of some schema, in which case the resolved value will be used rather than the actual object with property $ref.
Please note:
In case the source schema or the patch in with keyword use $ref, they won't take into account the resolution scope for their internal $refs defined by the parent objects - they will be used as separate objects.
$ref in both source schema and with patch take into account current $ref resolution scope (from version 2.0.0).