René's URL Explorer Experiment


Title: fix: Improve friendly validation error messages by mafredri · Pull Request #3390 · coder/coder · GitHub

Open Graph Title: fix: Improve friendly validation error messages by mafredri · Pull Request #3390 · coder/coder

X Title: fix: Improve friendly validation error messages by mafredri · Pull Request #3390 · coder/coder

Description: Secure environments for developers and their agents - fix: Improve friendly validation error messages by mafredri · Pull Request #3390 · coder/coder

Open Graph Description: This PR adds the validation errors to the friendly error message. I found it confusing when working on #3000 and all I got was Validation failed.. Before: ❯ go run ./cmd/coder rename testy user/tes...

X Description: This PR adds the validation errors to the friendly error message. I found it confusing when working on #3000 and all I got was Validation failed.. Before: ❯ go run ./cmd/coder rename testy user/tes...

Opengraph URL: https://github.com/coder/coder/pull/3390

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:31756ae3-8245-0a4b-5570-a1fe29bbed13
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7FC:240CD1:25E678E:3029785:6B019185
html-safe-noncea3eeb091629f13940dd339c756c9ab3c7212319afca99ef8d80a762591f74617
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0ZDOjI0MENEMToyNUU2NzhFOjMwMjk3ODU6NkIwMTkxODUiLCJ2aXNpdG9yX2lkIjoiNjg4ODY5Mjk1ODMxMzQxOTE0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac105f286f685317dfc1d15f2b898555d6f175f2990ab44367877893f32b530ca8
hovercard-subject-tagpull_request:1018604445
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/3390/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f470219e12263b3018bc57c657d0c6c880192cfc0bd521ff711020e07d7d66af/coder/coder/pull/3390
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f470219e12263b3018bc57c657d0c6c880192cfc0bd521ff711020e07d7d66af/coder/coder/pull/3390
og:image:altThis PR adds the validation errors to the friendly error message. I found it confusing when working on #3000 and all I got was Validation failed.. Before: ❯ go run ./cmd/coder rename testy user/tes...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemafredri
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/3390#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3390
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3390
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/3390
Reloadhttps://github.com/coder/coder/pull/3390
Reloadhttps://github.com/coder/coder/pull/3390
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/improve-cli-error-message-on-validation-failedhttps://github.com/coder/coder/tree/mafredri/improve-cli-error-message-on-validation-failed
Conversationhttps://github.com/coder/coder/pull/3390
Commits2 (2)https://github.com/coder/coder/pull/3390/commits
Checkshttps://github.com/coder/coder/pull/3390/checks
Files changedhttps://github.com/coder/coder/pull/3390/files
fix: Improve friendly validation error messageshttps://github.com/coder/coder/pull/3390#top
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/improve-cli-error-message-on-validation-failedhttps://github.com/coder/coder/tree/mafredri/improve-cli-error-message-on-validation-failed
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Aug 5, 2022https://github.com/coder/coder/pull/3390#issue-1329848705
Please reload this pagehttps://github.com/coder/coder/pull/3390
#3000https://github.com/coder/coder/issues/3000
#1673https://github.com/coder/coder/issues/1673
Please reload this pagehttps://github.com/coder/coder/pull/3390
mafredrihttps://github.com/mafredri
August 5, 2022 14:43https://github.com/coder/coder/pull/3390#commits-pushed-920a2a6
https://github.com/mafredri
fix: Add validations to (*codersdk.Error).Friendlyhttps://github.com/coder/coder/pull/3390/commits/920a2a63a7283743bb69bd78ef9019ee2867387a
920a2a6https://github.com/coder/coder/pull/3390/commits/920a2a63a7283743bb69bd78ef9019ee2867387a
https://github.com/mafredri
fix: Add named validators for template and workspace namehttps://github.com/coder/coder/pull/3390/commits/ae6508cca012f5b2697cc740867a40ff97304708
ae6508chttps://github.com/coder/coder/pull/3390/commits/ae6508cca012f5b2697cc740867a40ff97304708
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Aug 5, 2022https://github.com/coder/coder/pull/3390#event-7135388733
https://github.com/mafredri
mafredrihttps://github.com/mafredri
August 5, 2022 12:03https://github.com/coder/coder/pull/3390#event-7135388793
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
Aug 5, 2022 https://github.com/coder/coder/pull/3390#pullrequestreview-1063264253
View reviewed changes https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708
coderd/httpapi/httpapi.gohttps://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708#diff-5e36a54e5f24aa60de9e266ab8efa44db547189569ecf692410b5f388db4ae7c
johnstcnhttps://github.com/johnstcn
Aug 5, 2022https://github.com/coder/coder/pull/3390#discussion_r938747242
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3390
mafredrihttps://github.com/mafredri
Aug 5, 2022https://github.com/coder/coder/pull/3390#discussion_r938748634
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3390
bpmcthttps://github.com/bpmct
Aug 8, 2022https://github.com/coder/coder/pull/3390#discussion_r940302291
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#3321https://github.com/coder/coder/issues/3321
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
Aug 5, 2022 https://github.com/coder/coder/pull/3390#pullrequestreview-1063267411
View reviewed changes https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708
https://github.com/AbhineetJain
AbhineetJainhttps://github.com/AbhineetJain
Aug 6, 2022https://github.com/coder/coder/pull/3390#issuecomment-1207147841
#1943https://github.com/coder/coder/issues/1943
@presleyphttps://github.com/presleyp
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Aug 8, 2022https://github.com/coder/coder/pull/3390#issuecomment-1208081413
@AbhineetJainhttps://github.com/AbhineetJain
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Aug 8, 2022 https://github.com/coder/coder/pull/3390#ref-issue-1245449272
CLI: getting "Validation failed name: username" error in cli in case workspace or template name does not follow allowed pattern #1673 https://github.com/coder/coder/issues/1673
https://github.com/bpmct
bpmcthttps://github.com/bpmct
Aug 8, 2022 https://github.com/coder/coder/pull/3390#pullrequestreview-1065269840
View reviewed changes https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708
bpmcthttps://github.com/bpmct
https://github.com/coder/coder/pull/3390#pullrequestreview-1065269840
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Aug 8, 2022https://github.com/coder/coder/pull/3390#issuecomment-1208243357
validatorhttps://github.com/go-playground/validator
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/bpmct
bpmcthttps://github.com/bpmct
Aug 8, 2022https://github.com/coder/coder/pull/3390#issuecomment-1208276822
validatorhttps://github.com/go-playground/validator
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/Emyrk
Emyrkhttps://github.com/Emyrk
Aug 8, 2022https://github.com/coder/coder/pull/3390#issuecomment-1208415949
validatorhttps://github.com/go-playground/validator
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Aug 9, 2022https://github.com/coder/coder/pull/3390#issuecomment-1209255220
https://github.com/Aptomi/k8s-app-engine/blob/11b495fc520680093a990fee0eaaf598507596b5/pkg/lang/validation.gohttps://github.com/Aptomi/k8s-app-engine/blob/11b495fc520680093a990fee0eaaf598507596b5/pkg/lang/validation.go
https://github.com/guiferpa/godyhttps://github.com/guiferpa/gody
https://github.com/dealancer/validatehttps://github.com/dealancer/validate
https://awesome-go.com/validation/https://awesome-go.com/validation/
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/mafredri
mafredrihttps://github.com/mafredri
c0cc8b9https://github.com/coder/coder/commit/c0cc8b99355334fdf35de36efc9c4fcf9ce18fc2
Aug 9, 2022https://github.com/coder/coder/pull/3390#event-7154607251
https://github.com/mafredri
mafredrihttps://github.com/mafredri
August 9, 2022 11:25https://github.com/coder/coder/pull/3390#event-7154607336
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Aug 9, 2022 https://github.com/coder/coder/pull/3390#ref-pullrequest-1332064885
feat: Add support for renaming workspaces #3409 https://github.com/coder/coder/pull/3409
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F3390
https://github.com/bpmct
bpmct https://github.com/bpmct
https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708
https://github.com/johnstcn
johnstcn https://github.com/johnstcn
https://github.com/coder/coder/pull/3390/files/ae6508cca012f5b2697cc740867a40ff97304708
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/mafredri
mafredri https://github.com/mafredri
CLI: getting "Validation failed name: username" error in cli in case workspace or template name does not follow allowed pattern https://github.com/coder/coder/issues/1673
Please reload this pagehttps://github.com/coder/coder/pull/3390
https://github.com/mafredri
https://github.com/AbhineetJain
https://github.com/bpmct
https://github.com/Emyrk
https://github.com/johnstcn
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.