Title: Ideas about new functions: chi support, request/response validation · Issue #2 · oapi-codegen/oapi-codegen · GitHub
Open Graph Title: Ideas about new functions: chi support, request/response validation · Issue #2 · oapi-codegen/oapi-codegen
X Title: Ideas about new functions: chi support, request/response validation · Issue #2 · oapi-codegen/oapi-codegen
Description: I have some ideas to new functions and I am ready to code them. Add command line option to produce chi compatible server interface and handlers. Add support for full request validation. a) add middleware for chi router with params valida...
Open Graph Description: I have some ideas to new functions and I am ready to code them. Add command line option to produce chi compatible server interface and handlers. Add support for full request validation. a) add midd...
X Description: I have some ideas to new functions and I am ready to code them. Add command line option to produce chi compatible server interface and handlers. Add support for full request validation. a) add midd...
Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ideas about new functions: chi support, request/response validation","articleBody":"I have some ideas to new functions and I am ready to code them.\r\n\r\n1. Add command line option to produce chi compatible server interface and handlers.\r\n2. Add support for full request validation.\r\na) add middleware for chi router with params validation and secure validation;\r\nb) add secure validation to echo middleware.\r\n\r\nFor security validation there is needed for \"AuthenticationFunc\". I prefer to add it not as callback function, but as interface function.\r\n\r\n3. Add support for full response validation. There is two options.\r\n\r\na) validation may be added as on runtime basis as middleware: get generated response and validate it with openapi3filter. It is simple, but adds time to request processing;\r\n\r\nb) static validation. We can generate boilerplate, so interface functions will be returns predefined genereated structs from boilerplate, these struct will be self-validated and produce from them json responses. It is more complicated, but will be more user-friendly to developer and gets better perfomance.\r\n\r\nPlease, say your opinion about this features.","author":{"url":"https://github.com/kak-tus","@type":"Person","name":"kak-tus"},"datePublished":"2019-05-02T09:12:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/2/oapi-codegen/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1092956e-fb56-916b-b66c-d632bc27bdd1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF3E:B97C3:484F3B2:64FBAFB:6A4F7832 |
| html-safe-nonce | 1fb35403755d656aaaf5b526a40fa264caac241cf1685499852f105c06b5dd10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjNFOkI5N0MzOjQ4NEYzQjI6NjRGQkFGQjo2QTRGNzgzMiIsInZpc2l0b3JfaWQiOiI2MTgyNzQ5NzA4Mzc5NDAyNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0cc3b6b422041378bbb4a87b595dc6351c8bf326343892b40fd3ea24b20b6b43 |
| hovercard-subject-tag | issue:439492489 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oapi-codegen/oapi-codegen/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6065e530d28b796a9bfc0624836f0e89b8a2f9cc52c8952c0220ec95a4d4b313/oapi-codegen/oapi-codegen/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6065e530d28b796a9bfc0624836f0e89b8a2f9cc52c8952c0220ec95a4d4b313/oapi-codegen/oapi-codegen/issues/2 |
| og:image:alt | I have some ideas to new functions and I am ready to code them. Add command line option to produce chi compatible server interface and handlers. Add support for full request validation. a) add midd... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kak-tus |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/oapi-codegen/oapi-codegen git https://github.com/oapi-codegen/oapi-codegen.git |
| octolytics-dimension-user_id | 142752710 |
| octolytics-dimension-user_login | oapi-codegen |
| octolytics-dimension-repository_id | 173009358 |
| octolytics-dimension-repository_nwo | oapi-codegen/oapi-codegen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 173009358 |
| octolytics-dimension-repository_network_root_nwo | oapi-codegen/oapi-codegen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width