Sage-Bionetworks / rocc-schemas

OpenAPI specification of the Registry of Open Community Challenges
Apache License 2.0
0 stars 0 forks source link

Inconsistency of login requirement for sponsors and org account #214

Open rrchai opened 2 years ago

rrchai commented 2 years ago

The login requirements for organization account and sponsors are different:

OrganizationCreateRequest: https://github.com/Sage-Bionetworks/rocc-schemas/blob/db8555cce228a60938afee5dc4a2303a52c23f80/openapi/components/schemas/OrganizationCreateRequest.yaml#L2-L5

ChallengeSponsorCreateRequest: https://github.com/Sage-Bionetworks/rocc-schemas/blob/db8555cce228a60938afee5dc4a2303a52c23f80/openapi/components/schemas/ChallengeSponsorCreateRequest.yaml#L2-L7

The sponsor's login requires login length < 25. Since sponsors are organization names that could be long, currently half of sponsor data's login fail the login length requirement. When we query the data, we will get this error (front end will not get sponsors successfully):

Screen Shot 2021-12-10 at 9 56 11 AM

Suggestion: