config/schema: add <schema object>:get()
It allows to acquire a nested data with several convenience properties. * Optional chaining semantic: `<schema object>:get(data, 'foo.bar')` works similarly to TypeScript's `data?.foo?.bar` operator. * Path validation against the schema: it prevents attempt to get an unknown field and attempt to index a scalar value. Part of #8725 NO_DOC=the module is for internal use from the config code NO_CHANGELOG=see NO_DOC
Loading
Please register or sign in to comment