Skip to content

Serialize default values for missing config values #289

@MSKatKing

Description

@MSKatKing

Is your feature request related to a problem?

Currently, if the default config and the ServerConfig struct are updated the new fields won't be serialized to the existing config. Unless the user inserts the value themselves or deletes the config, the new value will always use the default one.

Describe the solution / feature you'd like.

If a field is missing from the config, the default value and the comments associated with that field should be serialized to the existing config. This makes it easier for users to see if there's any new config values that they have available to them after an update.

Alternatives you've considered.

N/A

Additional Context

No response

I have confimed that...

  • ... such a feature does not exist already.
  • ... I ticked all the boxes without reading them
  • ... such a feature request has not been submitted already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions