File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ impl SubgraphName {
207
207
208
208
// Parse into components and validate each
209
209
for part in s. split ( '/' ) {
210
- // Each part must be non-empty and not too long
211
- if part. is_empty ( ) || part . len ( ) > 32 {
210
+ // Each part must be non-empty
211
+ if part. is_empty ( ) {
212
212
return Err ( ( ) ) ;
213
213
}
214
214
@@ -890,7 +890,7 @@ fn test_subgraph_name_validation() {
890
890
assert ! ( SubgraphName :: new( "aaaa+aaaaa" ) . is_err( ) ) ;
891
891
assert ! ( SubgraphName :: new( "a/graphql" ) . is_err( ) ) ;
892
892
assert ! ( SubgraphName :: new( "graphql/a" ) . is_err( ) ) ;
893
- assert ! ( SubgraphName :: new( "this-component-is-longer-than-the-length-limit " ) . is_err ( ) ) ;
893
+ assert ! ( SubgraphName :: new( "this-component-is-very-long-but-we-dont-care " ) . is_ok ( ) ) ;
894
894
}
895
895
896
896
#[ test]
You can’t perform that action at this time.
0 commit comments