René's URL Explorer Experiment


Title: Having Role enum name in createUser from swagger fails with error. · Issue #8 · oatpp/example-postgresql · GitHub

Open Graph Title: Having Role enum name in createUser from swagger fails with error. · Issue #8 · oatpp/example-postgresql

X Title: Having Role enum name in createUser from swagger fails with error. · Issue #8 · oatpp/example-postgresql

Description: Hi dear Leo. I have problem with enum in DTO_FIELD in createUser api execution. If i remove the role from request, it works. couldn't figure it out why. Also my db encoding is UTF8 Thanks in advance. Request body: { "username": "string2"...

Open Graph Description: Hi dear Leo. I have problem with enum in DTO_FIELD in createUser api execution. If i remove the role from request, it works. couldn't figure it out why. Also my db encoding is UTF8 Thanks in advanc...

X Description: Hi dear Leo. I have problem with enum in DTO_FIELD in createUser api execution. If i remove the role from request, it works. couldn't figure it out why. Also my db encoding is UTF8 Thanks in ad...

Opengraph URL: https://github.com/oatpp/example-postgresql/issues/8

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Having Role enum name in createUser from swagger fails with error.","articleBody":"Hi dear Leo.\r\nI have problem with enum in DTO_FIELD in createUser api execution.\r\nIf i remove the role from request, it works. couldn't figure it out why.\r\nAlso my db encoding is UTF8\r\nThanks in advance.\r\n\r\nRequest body:\r\n```json\r\n{\r\n  \"username\": \"string2\",\r\n  \"email\": \"string2\",\r\n  \"password\": \"string2\",\r\n  \"role\": \"ROLE_GUEST\"\r\n}\r\n```\r\nResponse:\r\n```json\r\n{\r\n  \"status\": \"ERROR\",\r\n  \"code\": 500,\r\n  \"message\": \"ERROR:  invalid byte sequence for encoding \\\"UTF8\\\": 0xdd 0xdd\\nCONTEXT:  unnamed portal parameter $4\\n\"\r\n}\r\n```\r\nAnd this is my DTO:\r\n\r\n```cpp\r\n#include OATPP_CODEGEN_BEGIN(DTO)\r\n\r\nENUM(Role, v_int32,\r\n     VALUE(GUEST, 0, \"ROLE_GUEST\"),\r\n     VALUE(ADMIN, 1, \"ROLE_ADMIN\")\r\n)\r\n\r\nclass UserDto : public oatpp::DTO {\r\n  \r\n  DTO_INIT(UserDto, DTO)\r\n\r\n  DTO_FIELD(String, id);\r\n  DTO_FIELD(String, userName, \"username\");\r\n  DTO_FIELD(String, email, \"email\");\r\n  DTO_FIELD(String, password, \"password\");\r\n  DTO_FIELD(Enum\u003cRole\u003e::AsString, role, \"role\");\r\n\r\n};\r\n\r\n#include OATPP_CODEGEN_END(DTO)\r\n```\r\nUserDb:\r\n```cpp\r\n  QUERY(createUser,\r\n        \"INSERT INTO AppUser\"\r\n        \"(id, username, email, password, role) VALUES \"\r\n        \"(uuid_generate_v4(), :user.username, :user.email, :user.password, :user.role)\"\r\n        \"RETURNING *;\",\r\n        PREPARE(true), // user prepared statement!\r\n        PARAM(oatpp::Object\u003cUserDto\u003e, user))\r\n```","author":{"url":"https://github.com/NoWhereMan1979","@type":"Person","name":"NoWhereMan1979"},"datePublished":"2024-03-12T12:27:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/8/example-postgresql/issues/8"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:22513e80-f2a0-db95-4d6a-e8df3c7b6bfb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC97C:A8F1B:1F1EF5:2B968A:698C94AC
html-safe-nonce8bac5942dc15e695d76c6d9ca6dfb5445dd50506d6bc1b1866d914386a8e204c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTdDOkE4RjFCOjFGMUVGNToyQjk2OEE6Njk4Qzk0QUMiLCJ2aXNpdG9yX2lkIjoiNzk4OTI0OTAxMDQ0MjIxMjUyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2e94716e42ea16171731b45307c39c4808faba9ff6ce48bca79461eaeaca75a0
hovercard-subject-tagissue:2181496228
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oatpp/example-postgresql/8/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a25230b100cb7edf47e854e93d2d22cc97d7ce51de4095d7f16d10d7189f3ec7/oatpp/example-postgresql/issues/8
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a25230b100cb7edf47e854e93d2d22cc97d7ce51de4095d7f16d10d7189f3ec7/oatpp/example-postgresql/issues/8
og:image:altHi dear Leo. I have problem with enum in DTO_FIELD in createUser api execution. If i remove the role from request, it works. couldn't figure it out why. Also my db encoding is UTF8 Thanks in advanc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNoWhereMan1979
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/oatpp/example-postgresql git https://github.com/oatpp/example-postgresql.git
octolytics-dimension-user_id37167448
octolytics-dimension-user_loginoatpp
octolytics-dimension-repository_id170488350
octolytics-dimension-repository_nwooatpp/example-postgresql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id170488350
octolytics-dimension-repository_network_root_nwooatpp/example-postgresql
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
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/oatpp/example-postgresql/issues/8#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Foatpp%2Fexample-postgresql%2Fissues%2F8
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Foatpp%2Fexample-postgresql%2Fissues%2F8
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=oatpp%2Fexample-postgresql
Reloadhttps://patch-diff.githubusercontent.com/oatpp/example-postgresql/issues/8
Reloadhttps://patch-diff.githubusercontent.com/oatpp/example-postgresql/issues/8
Reloadhttps://patch-diff.githubusercontent.com/oatpp/example-postgresql/issues/8
oatpp https://patch-diff.githubusercontent.com/oatpp
example-postgresqlhttps://patch-diff.githubusercontent.com/oatpp/example-postgresql
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Foatpp%2Fexample-postgresql
Fork 20 https://patch-diff.githubusercontent.com/login?return_to=%2Foatpp%2Fexample-postgresql
Star 40 https://patch-diff.githubusercontent.com/login?return_to=%2Foatpp%2Fexample-postgresql
Code https://patch-diff.githubusercontent.com/oatpp/example-postgresql
Issues 7 https://patch-diff.githubusercontent.com/oatpp/example-postgresql/issues
Pull requests 0 https://patch-diff.githubusercontent.com/oatpp/example-postgresql/pulls
Actions https://patch-diff.githubusercontent.com/oatpp/example-postgresql/actions
Projects 0 https://patch-diff.githubusercontent.com/oatpp/example-postgresql/projects
Security 0 https://patch-diff.githubusercontent.com/oatpp/example-postgresql/security
Insights https://patch-diff.githubusercontent.com/oatpp/example-postgresql/pulse
Code https://patch-diff.githubusercontent.com/oatpp/example-postgresql
Issues https://patch-diff.githubusercontent.com/oatpp/example-postgresql/issues
Pull requests https://patch-diff.githubusercontent.com/oatpp/example-postgresql/pulls
Actions https://patch-diff.githubusercontent.com/oatpp/example-postgresql/actions
Projects https://patch-diff.githubusercontent.com/oatpp/example-postgresql/projects
Security https://patch-diff.githubusercontent.com/oatpp/example-postgresql/security
Insights https://patch-diff.githubusercontent.com/oatpp/example-postgresql/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/oatpp/example-postgresql/issues/8
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/oatpp/example-postgresql/issues/8
Having Role enum name in createUser from swagger fails with error.https://patch-diff.githubusercontent.com/oatpp/example-postgresql/issues/8#top
https://github.com/NoWhereMan1979
https://github.com/NoWhereMan1979
NoWhereMan1979https://github.com/NoWhereMan1979
on Mar 12, 2024https://github.com/oatpp/example-postgresql/issues/8#issue-2181496228
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.