I accidentally clicked the JSON Schema validation menu in Android Studio and selected JSON schema v7 from the list.
Now the IDE shows warnings in my pubspec.yaml file that some values were not allowed. I turned of the inspection but I wondered if there was any way to reset it back to "No JSON schema".
After creating a new yaml file in my project, the bottom right bar looks like this:
Then I can select something, like JSON schema v7.
However there is no "None" or "No JSON schema" or anything.
I also tried to right click, Shift-Click, Ctrl-Click, Alt-Click, to no avail. My search for "android-studio JSON schema" didn't bring up anything either.
How do I clear the JSON schema?
Thanks to the comment by @Rakesh Kumar I found something indeed!
Open Settings > Languages & Frameworks > Schema and DTDs > JSON Schema Mappings
Selecting the schema you had selected for your file, you can then select the file on the right side and click the "-" button to remove schema validation with that schema for that file.