Skip to content

codegen: underscores break schema names #5415

Description

@hughsimpson

I swear we used to support having underscores in schema names, but that doesn't work now (produces non-compiling code). I'm not sure when it happened, although I'd guess at some point during the name sanity refactor, but now the case class definition and the schema references to it drift apart (so a schema pet_1 could be created as case class Pet1(..) but referenced as Schema[pet_1]. Need to get that more principled so it doesn't happen again, and hopefully in so doing, fix the bug with _.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions