json-schema-validator icon indicating copy to clipboard operation
json-schema-validator copied to clipboard

Can JSON schema enums be case insensitive?

Open HemantMJain opened this issue 8 years ago • 6 comments

Is there an elegant way to make the enum case-insensitive?

HemantMJain avatar May 29 '17 09:05 HemantMJain

I am in a process to change the validator loading to SPI and might add a config file for these validators. I have a config module from light-4j framework that can load .yml config file which can be used to control behaviour of each validators. I cannot promise the time as there are too many projects are going on at the same time. Stay tuned.

stevehu avatar May 29 '17 21:05 stevehu

@BalloonWen @jiachen1120 We have a config file already and I am wondering if we should put this into the config to control the case-insensitive?

stevehu avatar Jun 25 '19 15:06 stevehu

@stevehu Hi, Any update of controlling the case-insensitive?

Tryking avatar Aug 21 '19 06:08 Tryking

@Tryking @HemantMJain As this is an exceptional feature in the library and there is no demand from other users, I am wondering if you could help to submit a PR for the feature.

stevehu avatar Aug 21 '19 12:08 stevehu

@stevehu I also have a requirement for having enums, constants as case insensitive.

piyushkumar13 avatar Dec 04 '19 14:12 piyushkumar13

As this is not standard in the spec., we can only implement it with a configuration like enum_const_insensitive: true or something like that. It would be very helpful if someone can submit a PR for it.

stevehu avatar Dec 04 '19 14:12 stevehu

Given there is no interest in this feature, this issue is closed.

stevehu avatar Apr 20 '23 22:04 stevehu