tulsawebdevs / website

The Tulsa Web Devs User Group Site
GNU General Public License v3.0
1 stars 13 forks source link

fix: update ProposalForm validation to match server constraints #238

Closed helmturner closed 6 months ago

helmturner commented 6 months ago

The ProposalForm fields have validation attributes that don't quite match the requirements set by the server. The form rejects inputs that the server would otherwise accept, and even accepts input the server would reject—resulting in a confusing error.

See https://tulsawebdevs.org/docs/api for details, view the source code at https://github.com/tulsawebdevs/services-voting/blob/main/types/proposal.ts, or reach out to @zenlex for more information.

helmturner commented 6 months ago

After discussing this, we decided to make the API spec the source of truth. Since the client SDK will be generated from that spec and the backend will be refactored to match, we can close this once the sdk generation is implemented.