You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation generator performs pretty heavy analysis of modules when generating its wiki. Because of this, it assumes that the public configuration has not been altered (the types of data have remained the same).
This contract can be freely broken by unsuspecting modules, leading the documentation generator to break in unpredictable ways. It may make sense to put a guard on the table after the user configuration has been applied to prevent data types from being altered.
This would involve wrapping the config.public table in a metatable which verifies that every write to __newindex preserves the type.
The text was updated successfully, but these errors were encountered:
vhyrro
added
the
discussion
Issue related to discussions, in preparation of a feature or bug fixes.
label
Apr 4, 2024
The documentation generator performs pretty heavy analysis of modules when generating its wiki. Because of this, it assumes that the public configuration has not been altered (the types of data have remained the same).
This contract can be freely broken by unsuspecting modules, leading the documentation generator to break in unpredictable ways. It may make sense to put a guard on the table after the user configuration has been applied to prevent data types from being altered.
This would involve wrapping the
config.public
table in a metatable which verifies that every write to__newindex
preserves the type.The text was updated successfully, but these errors were encountered: