tarantool / tarantool/doc

Deep assign/delete a field inside `any` schema type

Open
#5,614 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.