sanity-codegen icon indicating copy to clipboard operation
sanity-codegen copied to clipboard

Support for `.` name spacing in field object name

Open tomjamesallen opened this issue 2 years ago • 0 comments

I've been trying to get codegen up and running with the Sanity Connect for Shopify starter and I'm running into some issues. Some of the object definitions contain periods to namespace fields e.g. seo.singleton. When used to create type names this is throwing a syntax error.

Screenshot 2022-03-14 at 07 37 22 Screenshot 2022-03-14 at 07 37 32

Is it possible to add support for converting . in field names to an underscore or dropping it all together to avoid this issue?

tomjamesallen avatar Mar 14 '22 07:03 tomjamesallen