[DNM] Custom data placeholder module is not required #5243
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DNM - exploration
This shows how config modules -- modules specified in the app.toml file -- can be made solely server led. There are few small changes here:
additionalProperties: false
is set. This means that JSON schema that covers a slice of the app.toml can be given the entire config, validate it, and return a data structure representing just thie piece that it validated. This is the same behaviour the internal zod schemas for app config follow.One side-effect of this is that completely unknown sections in the app.toml are ignored but don't cause validation to fail. This is a change. This may be desirable or not... if the reason a section is ignored is because it's called
[scopes]
then the developer probably meant[access_scopes]
and so maybe silence isn't good. Alternatively it may be the right thing to validate things we known about and ignore things we don't.This is tested in dev and deploy but not linking yet. We'd want to test this thoroughly I think as its a somewhat low level shift.