File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -265,9 +265,6 @@ fn parse_new_headers(req: &mut dyn RequestExt) -> AppResult<EncodableCrateUpload
265
265
if empty ( new. license . as_ref ( ) ) && empty ( new. license_file . as_ref ( ) ) {
266
266
missing. push ( "license" ) ;
267
267
}
268
- if new. authors . iter ( ) . all ( String :: is_empty) {
269
- missing. push ( "authors" ) ;
270
- }
271
268
if !missing. is_empty ( ) {
272
269
let message = missing_metadata_error_message ( & missing) ;
273
270
return Err ( cargo_err ( & message) ) ;
Original file line number Diff line number Diff line change @@ -818,7 +818,7 @@ fn ignored_badges() {
818
818
}
819
819
820
820
#[ test]
821
- fn author_license_and_description_required ( ) {
821
+ fn license_and_description_required ( ) {
822
822
let ( _, _, _, token) = TestApp :: init ( ) . with_token ( ) ;
823
823
824
824
let crate_to_publish = PublishBuilder :: new ( "foo_metadata" )
@@ -831,7 +831,7 @@ fn author_license_and_description_required() {
831
831
assert_eq ! ( response. status( ) , StatusCode :: OK ) ;
832
832
assert_eq ! (
833
833
response. json( ) ,
834
- json!( { "errors" : [ { "detail" : missing_metadata_error_message( & [ "description" , "license" , "authors" ] ) } ] } )
834
+ json!( { "errors" : [ { "detail" : missing_metadata_error_message( & [ "description" , "license" ] ) } ] } )
835
835
) ;
836
836
837
837
let crate_to_publish = PublishBuilder :: new ( "foo_metadata" )
@@ -844,7 +844,7 @@ fn author_license_and_description_required() {
844
844
assert_eq ! ( response. status( ) , StatusCode :: OK ) ;
845
845
assert_eq ! (
846
846
response. json( ) ,
847
- json!( { "errors" : [ { "detail" : missing_metadata_error_message( & [ "description" , "authors" ] ) } ] } )
847
+ json!( { "errors" : [ { "detail" : missing_metadata_error_message( & [ "description" ] ) } ] } )
848
848
) ;
849
849
850
850
let crate_to_publish = PublishBuilder :: new ( "foo_metadata" )
You can’t perform that action at this time.
0 commit comments