Split out the "fix" functionality of prisma format
#24227
Labels
kind/tech
A technical change.
team/schema
Issue for team Schema.
tech/engines
Issue for tech Engines.
tech/typescript
Issue for tech TypeScript.
topic: breaking change
topic: cli
topic: prisma format
CLI: prisma format
topic: prisma validate --fix
(Command does not exist yet, but if it did, this functionality would be triggered by it)
Context
The relevant code that adds the ""fix"" functionality to
format
is in:Which takes input from the three following functions:
reformat::push_missing_fields
reformat::push_missing_attributes
reformat::push_missing_relation_attribute_args
Instead of automatically being applied through format, we should offer the separate ability to fix the issues this catches. We have diagnostics for two of these already (they aren't used, however, in the current implementation of fixes in format)
As this is a breaking change, we should look at the following intermediary changes first
Temporary
Tasks
Nice-to-have
Related Notion Page
The text was updated successfully, but these errors were encountered: