Deep assign/delete a field inside `any` schema type
Open
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
Since: 3.7
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/config/utils_schema/#lua-function.schema_object.set
Important
The `data` argument is assumed to be validated against the given schema.
The `value` argument is validated before assignment.
+ For schema nodes of the `scalar({ type = 'any' })` type, no structural
+ validation is performed. Such nodes are treated as schemaless containers,
+ so assigning or deleting nested fields via deep paths is allowed.
Requested by @mandesero in https://github.com/tarantool/tarantool/commit/1e3c24135ba372d03802e5cdf857fedb293429af.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked schema_object.set documentation page and locate its Important section. Add the provided clarification for scalar({ type = 'any' }) nodes, then verify that the rendered page explains deep assignment and deletion without structural validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100