prismix icon indicating copy to clipboard operation
prismix copied to clipboard

Fix one letter named fields

Open BaptisteMahe opened this issue 2 years ago • 0 comments

Hello,

I had an issue with one of my enums in my schema.prisma while mixing it with your tool. Described as follow:

Schema input:

enum collect_measure_unit {
	kg
	l
}

Desired output:

enum collect_measure_unit {
	kg
	l
}

Actual output:

enum collect_measure_unit {
	kg
}

To fix this issues I edited the block renderer and edit field length filter.

I am not sure if this will impact other behaviour, why in the first place was there a 1 and not 0 ?

(I tried to run with this edit in my current setup with 3 schemas and it produced a valid schema.prisma as the output)

BaptisteMahe avatar Oct 12 '22 10:10 BaptisteMahe