mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
The merge completes an object field by field only when its schema declares properties. An atomic object (x-kubernetes-map-type: atomic), a dictionary value, a free-form object and an object that also takes arbitrary keys are stored as written, so nothing can complete them later. A default osImage.builtin plus a user's osImage.factory gave a spec the kubernetes-nodes chart refuses to render, and an entry such as a RabbitMQ vhost without roles was accepted and stored the same way. The merge now copies such an object whole or leaves the user's value alone, and an entry is validated for it as a whole, like an array row. A branch of an allOf, anyOf or oneOf that names a property is judged like the property declared next to it. An entry that gets this wrong is skipped with a warning like any other invalid entry. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>