PSL should support inline //
comments in the generator and datasource blocks
#14171
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines/datamodel
Issue about parsing/validation/rendering of the Prisma schema
topic: comments
topic: prisma validate
CLI: prisma validate
Milestone
As @tomhoule said, "comments have to be handled in a case-by-case basis in the AST, and we may not have a rule allowing trailing comments inside config blocks".
prisma validate
would fail with this simple schema because of the inline comment (placed at the end of a field):The error would be something like the following:
If however, we get rid of the comment (preserving the rest of the field definition as it is), everything is fine:
The text was updated successfully, but these errors were encountered: