-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: add conditional requirements for properties #155
Feature: add conditional requirements for properties #155
Conversation
I still prefer to allow having |
And the change to the madness config template is also not in line with my policy for it:
|
I think we have different definitions of help. For me, it's aggressive error reporting for everything and denial of almost all errors or mistakes (not fatal errors, but what can make config files dirty if are not addressed). Also, I think that validating configs with defaults is not the best idea because defaults can conflict when considered together. For that reason, I suggest performing validation over any other config. It relates not to just this project, but in general for all ones. My point is that user should be familiarized with such error (when And also there is another question: when we prefer silently ignore some properties, and when report error that they are missing? Just to clarify what you want. BTW, maybe it's possible to explain anywhere how to enable aggressive error reporting in JSON schema like I did in this PR. Something like "if you (end user) wanna more error reporting, then you can copy and modify JSON schema like this:". |
No. It is not an error to have The configuration file is not code. It intends to specify the user's preferences. Imagine a user having multiple madness sites, with
Not sure I am following. |
auth
is required to be present whenauth_zone
is usedauth
is required to bestring
whenauth_zone
is usedauth
value changed toadmin:s3cr3t
while default is mentioned in comment above