René's URL Explorer Experiment


Title: New configuration concept: "presets" · Issue #1920 · oapi-codegen/oapi-codegen · GitHub

Open Graph Title: New configuration concept: "presets" · Issue #1920 · oapi-codegen/oapi-codegen

X Title: New configuration concept: "presets" · Issue #1920 · oapi-codegen/oapi-codegen

Description: Problem As we build new functionality into oapi-codegen, there are new features which should become the defaults, because they provide a much better experience. For instance, using the new nullable support, but there are other features t...

Open Graph Description: Problem As we build new functionality into oapi-codegen, there are new features which should become the defaults, because they provide a much better experience. For instance, using the new nullable...

X Description: Problem As we build new functionality into oapi-codegen, there are new features which should become the defaults, because they provide a much better experience. For instance, using the new nullable...

Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/1920

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New configuration concept: \"presets\"","articleBody":"## Problem\n\nAs we build new functionality into `oapi-codegen`, there are new features which should become the defaults, because they provide a much better experience.\n\nFor instance, [using the new `nullable` support](https://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#generating-nullable-types), but there are other features that are opt-in, such as those we are looking at making in [the 3.x release](https://github.com/oapi-codegen/oapi-codegen/issues?q=is%3Aissue%20state%3Aopen%20milestone%3Av3.0.0).\n\nHowever, [we try to avoid changing the generated code](https://github.com/oapi-codegen/oapi-codegen/blob/main/CONTRIBUTING.md#making-changes-that-tweak-generated-code) for new features, and only plan to change the existing templated code if strictly necessary (i.e. to fix a bug).\n\nSo in this case, there's no handy way to \"nudge\" users to use the new functionality, aside from them having to read the docs and opt-in.\n\nWaiting until 3.x (which will come with a slew of other breaking changes) is unlikely to be a good idea, especially as we have no idea when that will be (as noted in https://github.com/oapi-codegen/oapi-codegen/discussions/1606)\n\nHowever, we don't want to rely on users needing to do as much to get a better experience.\n\n## Solution\n\nInstead, we should _shamelessly_ take inspiration from [Renovate's presets](https://docs.renovatebot.com/key-concepts/presets/) and introduce a means for users to take pre-configured set of defaults (separate to the actual defaults when using `oapi-codegen` with minimal configuration)\n\nThese will have a slightly different approach for stability, where generated changes will be possible, due to it having a slightly different behaviour to the \"normal\" defaults.\n\nWe should also define the \"preset ladder\", to indicate when a feature could be promoted to a \"recommended\" option.\n\nInitial thoughts would be that a configuration item cannot enter the presets until at least 1 minor release later.\n\n## Out of scope\n\nIt will not be possible to create your own presets.\n\nThere will only be one preset, `config:recommended`.\n\nIt will be possible to use multiple presets (as an array format) but it will only be allowed to be a singleton, pending further decision on behaviour.\n\n","author":{"url":"https://github.com/jamietanna","@type":"Person","name":"jamietanna"},"datePublished":"2025-03-06T21:12:02Z","url":"https://github.com/oapi-codegen/oapi-codegen/issues/1920"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ea68ac4e-511b-f122-cce3-53f3820dfb46
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id918A:3F3090:2BF7FC7:39842B0:6AF9BD23
html-safe-noncebe59991e60e438635f41fd0a54b2bd78369cb679a7e7d038f093a032591fa91f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MThBOjNGMzA5MDoyQkY3RkM3OjM5ODQyQjA6NkFGOUJEMjMiLCJ2aXNpdG9yX2lkIjoiNDIwMzQzNjQxMjIzMTA3MzA1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac35d8d67e4d2e094fb409cb0693bb6f4a3e3cf3fda8e2405d1878c1a0fa2a4122
hovercard-subject-tagissue:2901441647
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/oapi-codegen/oapi-codegen/1920/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3c49e37e080d11f58857597f7d2ee202c60c3c9db8eeb63ddc9b558c95022880/oapi-codegen/oapi-codegen/issues/1920
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c49e37e080d11f58857597f7d2ee202c60c3c9db8eeb63ddc9b558c95022880/oapi-codegen/oapi-codegen/issues/1920
og:image:altProblem As we build new functionality into oapi-codegen, there are new features which should become the defaults, because they provide a much better experience. For instance, using the new nullable...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejamietanna
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/oapi-codegen/oapi-codegen git https://github.com/oapi-codegen/oapi-codegen.git
octolytics-dimension-user_id142752710
octolytics-dimension-user_loginoapi-codegen
octolytics-dimension-repository_id173009358
octolytics-dimension-repository_nwooapi-codegen/oapi-codegen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id173009358
octolytics-dimension-repository_network_root_nwooapi-codegen/oapi-codegen
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/oapi-codegen/oapi-codegen/issues/1920#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fissues%2F1920
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%2Foapi-codegen%2Foapi-codegen%2Fissues%2F1920
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=oapi-codegen%2Foapi-codegen
Reloadhttps://github.com/oapi-codegen/oapi-codegen/issues/1920
Reloadhttps://github.com/oapi-codegen/oapi-codegen/issues/1920
Reloadhttps://github.com/oapi-codegen/oapi-codegen/issues/1920
oapi-codegenhttps://github.com/oapi-codegen
oapi-codegenhttps://github.com/oapi-codegen/oapi-codegen
Codehttps://github.com/oapi-codegen/oapi-codegen
Issues228 (228)https://github.com/oapi-codegen/oapi-codegen/issues
Pull requests70 (70)https://github.com/oapi-codegen/oapi-codegen/pulls
Discussionshttps://github.com/oapi-codegen/oapi-codegen/discussions
Actionshttps://github.com/oapi-codegen/oapi-codegen/actions
Projectshttps://github.com/oapi-codegen/oapi-codegen/projects
Security and quality11 (11)https://github.com/oapi-codegen/oapi-codegen/security
Insightshttps://github.com/oapi-codegen/oapi-codegen/pulse
https://github.com/oapi-codegen/oapi-codegen
New issuehttps://github.com/login?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1920
New issuehttps://github.com/login?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1920
New configuration concept: "presets"https://github.com/oapi-codegen/oapi-codegen/issues/1920#top
enhancementNew feature or requesthttps://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Mar 6, 2025https://github.com/oapi-codegen/oapi-codegen/issues/1920#issue-2901441647
using the new nullable supporthttps://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#generating-nullable-types
the 3.x releasehttps://github.com/oapi-codegen/oapi-codegen/issues?q=is%3Aissue%20state%3Aopen%20milestone%3Av3.0.0
we try to avoid changing the generated codehttps://github.com/oapi-codegen/oapi-codegen/blob/main/CONTRIBUTING.md#making-changes-that-tweak-generated-code
#1606https://github.com/oapi-codegen/oapi-codegen/discussions/1606
Renovate's presetshttps://docs.renovatebot.com/key-concepts/presets/
jamietannahttps://github.com/jamietanna
enhancementNew feature or requesthttps://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Mar 6, 2025https://github.com/oapi-codegen/oapi-codegen/issues/1920#event-16623360915
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on May 10, 2025https://github.com/oapi-codegen/oapi-codegen/issues/1920#issuecomment-2869031951
Don't use pointer to slice of types #1561https://github.com/oapi-codegen/oapi-codegen/issues/1561
feat(generate): allow generating Server URL boilerplate #2002https://github.com/oapi-codegen/oapi-codegen/pull/2002
jamietannahttps://github.com/jamietanna
on Feb 17, 2026https://github.com/oapi-codegen/oapi-codegen/issues/1920#event-22861202388
Use nullable.Nullables for configuration #1729https://github.com/oapi-codegen/oapi-codegen/issues/1729
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Feb 27, 2026https://github.com/oapi-codegen/oapi-codegen/issues/1920#issuecomment-3971775959
#2213https://github.com/oapi-codegen/oapi-codegen/pull/2213
Sign up for freehttps://github.com/signup?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1920
Sign in to commenthttps://github.com/login?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1920
enhancementNew feature or requesthttps://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.