{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreia4tmimoq5r3tkif57kv5m5ltegtj5cx6gtzw7bnbhjnxxruoftja",
    "uri": "at://did:plc:wszrgoqdwy3i2dfeub2mt3wf/app.bsky.feed.post/3mfzd7nhjnyw2"
  },
  "coverImage": {
    "$type": "blob",
    "ref": {
      "$link": "bafkreibk7ilcb5quri2t525amggpz4athfmo466xujf7qb2bl5tiggd75m"
    },
    "mimeType": "image/jpeg",
    "size": 26144
  },
  "description": "How to use Renovate to update the version pin on `oapi-codegen`'s JSON Schema URL.",
  "path": "/posts/2026/03/01/oapi-codegen-config-renovate/",
  "publishedAt": "2026-03-01T17:53:32.000Z",
  "site": "https://www.jvt.me",
  "tags": [
    "blogumentation",
    "renovate",
    "oapi-codegen",
    "`oapi-codegen`",
    "Custom Manager"
  ],
  "textContent": "A number of releases ago, I introduced a JSON Schema for `oapi-codegen`'s configuration file format, to aid with editor-driven autocomplete.\n\nIt's best if you pin this, so you're not trying to use features that don't yet exist, like so:\n\n\n    # yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/v2.6.0/configuration-schema.json\n    package: api\n    # ...\n\n\nBut if so, how do you update that? Do you need to do it manually after each release?\n\nY'all will be unsurprised to know that you can do this in a straightforward means, using Renovate.\n\nUsing the following `renovate.json` with a Custom Manager:\n\n\n    {\n      \"$schema\": \"https://docs.renovatebot.com/renovate-schema.json\",\n      \"customManagers\": [\n        {\n          \"customType\": \"regex\",\n          \"managerFilePatterns\": [\n            \"**/config.yaml\"\n          ],\n          \"matchStrings\": [\n            \"# yaml-language-server: \\\\$schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/(?<currentValue>[^/]+)/configuration-schema.json\"\n          ],\n          \"depNameTemplate\": \"github.com/oapi-codegen/oapi-codegen/v2\",\n          \"datasourceTemplate\": \"go\"\n        }\n      ]\n    }\n\n\nThis will now detect the version accordingly, and new version bumps to `oapi-codegen` will also bump in the configuration file - test it out!",
  "title": "Automagically updating oapi-codegen JSON Schema version bumps with Renovate",
  "updatedAt": "2026-03-01T17:53:32.000Z"
}