-
Notifications
You must be signed in to change notification settings - Fork 20
Allow to pass predefined field to type definitions #143
Comments
Yes, that makes sense and I like this idea. Property names often introduce more information than actual values. Do you think we need to provide any mappings by default, like with enum sets? |
@christoph-buente I assume that by |
Yes, i mean minimum and maximum. Changed it in the example. I also think it should be as simple as it can possibly be. I'm not sure how it would look like with a full enum. Like with currency with the full set available currencies? Or could it also be a regular expression? And of course there should be at least a warning or an error, if the mapping doesn't match with the observed values. Or maybe even discarded. |
@christoph-buente could you also elaborate on your example with EUR? Do you use |
I just found out about the |
Cool! Feel free to add your suggestions: #120 |
In the process of generating the schema for shopify webhooks i came across a bunch of fields, that i know the format of, but the schema-guru fails to find out correctly. For example lat,lon coordinates, or currencies. My shop is in one currency only, so the guru will read it as string "EUR" instead of enum-set ISO 4217.
Is it feasable to ask for an option to provide a mapping JSON file like this:
And whenever a field is found with this name, it will directly jump to the given mapping. Does that make sense?
The text was updated successfully, but these errors were encountered: