Skip to content

String validation with regex using unicode property escapes not possible #1077

Description

@stephanme

https://github.com/immich-app/immich/blob/v3.2.0/open-api/immich-openapi-specs.json#L22666 uses unicode property escapes like \p{...}.

Typify doesn't validate strings against patterns with unicode property escapes because it creates a new regex without specifying the u flag: https://github.com/oxidecomputer/typify/blob/main/typify-impl/src/convert.rs#L879

Found when upgrading progenitor from 0.14.0 to 0.15.0. Maybe it is possible to offer a configuration option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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