A common problem is when, during development, the structure of the local secrets.json changes, and appsettings.json does not (by forgetfulness and negligence).

What are the options to prevent such errors? The complication is that secrets.json does not relate to the structure and hierarchy of the project, but is taken simply by reference.

  • I think it can (and should) be tracked as part of integration testing. - Alexander Petrov
  • @AlexanderPetrov well this is understandable, I would like to automate the control. Tests to write for this offer? - Anatol
  • Once we write a test - then the check is performed automatically. - Alexander Petrov

0