-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Explain what would happen if type is not json #6408
Comments
That section doesn't seem to describe the format of the |
Looking at the type declarations you are right that this is very opaque. I believe |
Ah hah! Looks like I've found it here: which led me to discover the JSON schema validation for this setting: So it looks like the point of this property is to provide a "mini transform function" like a loader which will take a string of the source which was detected, and then expect it to be in a JSON.parse-able formated object. Would you be willing to commit back documentation for this @adriancuadrado |
@TheLarkInn I don't think I will. I would, but in order to improve this documentation to a point I'd feel comfortable, I think I'd need much more expertise in the subject than I have. |
In Rule.parser.parse, it says what would happen if you set
Rule.type
tojson
. What ifRule.type
wasn'tjson
? If this is only meant to be used when the type isjson
, wouldn't it make sense to assume the type isjson
by default? As described, this feature seems to only work with typejson
anyways. If you can specify anything else and not justjson
, would you mind to give examples?The text was updated successfully, but these errors were encountered: