Allow excepting keys from sanitization#454
Conversation
- Add an optional parameter nonSanitizableObjectKeys that prevents OpenAPI-to-GraphQL from sanitizing them - This does not conform to the GraphQL rules but allows power users who have a non-standard schema to handle their exceptional cases Signed-off-by: Dani Penev <danailnpenev@gmail.com>
|
@DanailPenev Thanks for providing this suggestion and including tests! It is also so helpful to include tests. However, I wonder if there is a better way to do this. Are you aware of the custom type/field/enum extension? The intention of this extension is to allow users to have greater control over type and field names and enum values. However, I think we still ensure basic santization aka remove GraphQL unsafe characters. Perhaps there should be an option that prevents OtG from sanitizing these extension names/values giving users definitive control over names and values. Perhaps something like In general, what do you think? |
|
And I am sorry for the late reply. I have really been struggling to maintain OtG by myself. |
Summary
Testing