Skip to content

Commit

Permalink
Add deprecation of old uppercase enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
daegalus committed Jul 29, 2024
1 parent e0abe9d commit 783ec98
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion lib/enums.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,30 @@ enum ValidationMode { nonStrict, strictRFC4122 }

/// RFC4122 & RFC9562 provided namespaces for v3, v5, and v8 namespace based UUIDs
enum Namespace {
@Deprecated(
"Please use the lowercase variant to follow Dart style guidelines.")
DNS("6ba7b810-9dad-11d1-80b4-00c04fd430c8"),
@Deprecated(
"Please use the lowercase variant to follow Dart style guidelines.")
URL("6ba7b811-9dad-11d1-80b4-00c04fd430c8"),
@Deprecated(
"Please use the lowercase variant to follow Dart style guidelines.")
OID("6ba7b812-9dad-11d1-80b4-00c04fd430c8"),
@Deprecated(
"Please use the lowercase variant to follow Dart style guidelines.")
X500("6ba7b814-9dad-11d1-80b4-00c04fd430c8"),
@Deprecated(
"Please use the lowercase variant to follow Dart style guidelines.")
NIL("00000000-0000-0000-0000-000000000000"),
MAX("ffffffff-ffff-ffff-ffff-ffffffffffff");
@Deprecated(
"Please use the lowercase variant to follow Dart style guidelines.")
MAX("ffffffff-ffff-ffff-ffff-ffffffffffff"),
dns("6ba7b810-9dad-11d1-80b4-00c04fd430c8"),
url("6ba7b811-9dad-11d1-80b4-00c04fd430c8"),
oid("6ba7b812-9dad-11d1-80b4-00c04fd430c8"),
x500("6ba7b814-9dad-11d1-80b4-00c04fd430c8"),
nil("00000000-0000-0000-0000-000000000000"),
max("ffffffff-ffff-ffff-ffff-ffffffffffff");

const Namespace(this.value);
final String value;
Expand Down

0 comments on commit 783ec98

Please sign in to comment.