Configuration

Problems in the SDK configuration: settings that do not parse, name nothing, or conflict.

Rule Default Summary
Config/AccessorShadowsMethod warn A pinned resource accessor names the same member as a method beside it and was renamed.
Config/DuplicateBodyOptionField warn Several client options send the same request body field, and the SDKs can disagree on which value wins.
Config/DuplicateEndpoint warn An endpoint is placed by more than one config method.
Config/InvalidAlias warn A configured alias cannot be compiled and was left out.
Config/InvalidCliCasing warn A customCasings spelling cannot be part of a CLI command or flag name, so the CLI ignores it.
Config/InvalidGeneratedBranch error A target names a generated branch that cannot be used.
Config/InvalidIntegrationBranch error A target names an integration branch that cannot be used.
Config/InvalidSignedUpload error A signed-upload method is configured in a way the generator cannot honour, so it is left out.
Config/InvalidSignedUrl error A signed-URL method is configured in a way the generator cannot honour, so it is left out.
Config/MethodEndpointMismatch warn A method writes an endpoint that disagrees with its verb and path.
Config/OidcIssuerMismatch warn The CLI's configured OAuth issuer rules out an OpenID Connect scheme's browser sign-in, which is left out.
Config/ParseError error The Scalar SDK config failed to parse or validate.
Config/StaleEndpoint warn A configured endpoint no longer exists in the OpenAPI document.
Config/UnknownBodyContentType warn A method's bodyContentType is not a media type its operation accepts, so it was left out.
Config/UnknownPublishKey warn A publish block carries a key that is neither a registry nor a reserved option.
Config/UnknownPublishOption warn A publish registry entry carries a key the config schema does not declare.
Config/UnresolvableDestinationRepo warn A destination repository is not a GitHub owner/repo, so the GitHub-only fields are omitted.
Config/UnresolvedMethodEndpoint warn A method names no operation the generator can place, so it is left out.
Config/UnsupportedPackageManager warn A target names a package manager its generated workflows do not support, so they use npm.
Config/UnusedRevocationUrl warn The CLI revocation URL is on no OAuth token endpoint’s origin, so logout never uses it.
Config/UnusedSecuritySchemeSettings warn A security scheme settings entry names no OAuth 2.0 or OpenID Connect scheme, so nothing uses it.
Config/WebhookAlwaysVerifyNoDecoder warn A webhook helper always verifies and has no parseUnsafe, so nothing decodes without verifying.
Config/WebhookHelperNameUnsafe warn A webhook helper's parseUnsafe takes a verifying companion's name, so it is not generated.
Config/WebhookHelperNoEvents warn A webhook helper matches no webhook event, so it has nothing to decode.
Config/WebhookTypeNameConflict warn A webhook helper's typeName names a type the SDK already declares, so it is ignored.
Config/WebhookUnknownEventType warn A webhook helper's eventTypes key names no webhook event in the document.

Config/AccessorShadowsMethod

A pinned resource accessor names the same member as a method beside it and was renamed.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A pinned resource accessor names the same member as a method beside it, so the accessor was renamed.

Changing or silencing it

Each finding's suppression key is the resource path, such as users.billing.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/AccessorShadowsMethod": "info"
    },
    "ignored": {
      "Config/AccessorShadowsMethod": "<suppression key>"
    }
  }
}

Config/DuplicateBodyOptionField

Several client options send the same request body field, and the SDKs can disagree on which value wins.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

Two or more clientSettings.opts entries set the same sendAsBodyParam, so they fill one request body field, and the generated SDKs can disagree on which value they send (some send the first option in config order that has a value, others the last). The message names every option involved. Names compare exactly, so currency and Currency differ. Give each option its own field name, or keep sendAsBodyParam on one of them.

Changing or silencing it

Each finding's suppression key is the shared field name, such as currency.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/DuplicateBodyOptionField": "info"
    },
    "ignored": {
      "Config/DuplicateBodyOptionField": "<suppression key>"
    }
  }
}

Config/DuplicateEndpoint

An endpoint is placed by more than one config method.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

Two methods in different resources place the same endpoint. Only the later placement survives, so the earlier method silently disappears. To keep both, declare one as a kind: alias with aliasTo naming the other.

Changing or silencing it

Each finding's suppression key is the endpoint.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/DuplicateEndpoint": "info"
    },
    "ignored": {
      "Config/DuplicateEndpoint": "<suppression key>"
    }
  }
}

Config/InvalidAlias

A configured alias cannot be compiled and was left out.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A kind: alias method was left out because its aliasTo is missing, names no method, names a webhook unwrap, signed upload or signed URL, names another alias or closes a cycle of aliases, or because its positionalParams name a parameter the target has no path parameter for.

Changing or silencing it

Each finding's suppression key is the alias's dotted config address, such as widgets.archive.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/InvalidAlias": "info"
    },
    "ignored": {
      "Config/InvalidAlias": "<suppression key>"
    }
  }
}

Config/InvalidCliCasing

A customCasings spelling cannot be part of a CLI command or flag name, so the CLI ignores it.

Default severity Fix lives in Targets
warn Your SDK configuration (config) cli

When it fires

A customCasings snake or singular.snake spelling, lowercased, does not start with an ASCII letter or digit or holds anything but letters, digits, - and _, in a configuration that generates the CLI. The CLI puts that spelling into command and flag names unquoted (writing _ as - in flag names), so wherever the word appears it ignores the spelling and keeps the name it derives from the word; other targets still use it. Change the spelling to one a CLI name can hold, or remove it.

Changing or silencing it

Each finding's suppression key is the config path, such as customCasings.mib.snake.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/InvalidCliCasing": "info"
    },
    "ignored": {
      "Config/InvalidCliCasing": "<suppression key>"
    }
  }
}

Config/InvalidGeneratedBranch

A target names a generated branch that cannot be used.

Default severity Fix lives in
error Your SDK configuration (config)

When it fires

A target's destinations.production.generatedBranch is not a usable branch name: not a safe git ref, the same as the default or integration branch, reserved for a branch the platform manages, a parent or child path of one of those, or containing --components--.

Changing or silencing it

Each finding's suppression key is the config path, such as targets.go.destinations.production.generatedBranch.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/InvalidGeneratedBranch": "warn"
    },
    "ignored": {
      "Config/InvalidGeneratedBranch": "<suppression key>"
    }
  }
}

Config/InvalidIntegrationBranch

A target names an integration branch that cannot be used.

Default severity Fix lives in
error Your SDK configuration (config)

When it fires

A target's destinations.production.integrationBranch is not a usable branch name: not a safe git ref, the same as the default branch, reserved for a branch the platform manages, a parent or child path of one of those, or containing --components--.

Changing or silencing it

Each finding's suppression key is the config path, such as targets.go.destinations.production.integrationBranch.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/InvalidIntegrationBranch": "warn"
    },
    "ignored": {
      "Config/InvalidIntegrationBranch": "<suppression key>"
    }
  }
}

Config/InvalidSignedUpload

A signed-upload method is configured in a way the generator cannot honour, so it is left out.

Default severity Fix lives in
error Your SDK configuration (config)

When it fires

A signed-upload method is configured in a way the generator cannot honour — a urlField or headersField the response does not declare, a confirm step with an unfilled path parameter or arguments of its own, an initiating or confirm response that is only an event stream, an initiating response with no confirm step that is read as bytes (an application/octet-stream body, or a fieldless one under */* or an unrecognized media type), a file argument that collides with a parameter, or initiateParams: "path" on an initiating operation that requires more than its path — so it is left out of every SDK.

Changing or silencing it

Each finding's suppression key is the method's configuration path, such as files.upload.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/InvalidSignedUpload": "warn"
    },
    "ignored": {
      "Config/InvalidSignedUpload": "<suppression key>"
    }
  }
}

Config/InvalidSignedUrl

A signed-URL method is configured in a way the generator cannot honour, so it is left out.

Default severity Fix lives in
error Your SDK configuration (config)

When it fires

A signed-URL method names something the document or client cannot honour — an endpoint the document lacks, a query field the endpoint does not declare or a required one left unfilled, a key option the client does not keep, a default on a param that is not a time — so it is left out of every SDK.

Changing or silencing it

Each finding's suppression key is the method's configuration path, such as cards.get_embed_url.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/InvalidSignedUrl": "warn"
    },
    "ignored": {
      "Config/InvalidSignedUrl": "<suppression key>"
    }
  }
}

Config/MethodEndpointMismatch

A method writes an endpoint that disagrees with its verb and path.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A method writes an endpoint beside a verb or path (a missing half read off endpoint), and the two name different operations. The method calls its verb and path, but is filed under the endpoint string, so ignoredEndpoints matches that string, its paginated scheme is not applied, and it is generated on the root client; setting endpoint to match, or verb and path to match the endpoint, are offered as unsafe fixes.

Changing or silencing it

Each finding's suppression key is the method's dotted config address, such as users.list.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/MethodEndpointMismatch": "info"
    },
    "ignored": {
      "Config/MethodEndpointMismatch": "<suppression key>"
    }
  }
}

Config/OidcIssuerMismatch

The CLI's configured OAuth issuer rules out an OpenID Connect scheme's browser sign-in, which is left out.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

The CLI's configured OAuth issuer rules out an OpenID Connect scheme's browser sign-in, so that sign-in is left out.

Changing or silencing it

Each finding's suppression key is the security scheme name.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/OidcIssuerMismatch": "info"
    },
    "ignored": {
      "Config/OidcIssuerMismatch": "<suppression key>"
    }
  }
}

Config/ParseError

The Scalar SDK config failed to parse or validate.

Default severity Fix lives in
error Your SDK configuration (config)

When it fires

The SDK configuration fails to parse, or fails schema validation. One finding per validation error, pointing at the exact line.

Changing or silencing it

This finding cannot be re-graded or suppressed. It reports an SDK configuration that could not be read, and the diagnostics block that grades and suppresses findings is part of that configuration, so none of its settings apply to a build that reports it. Fix the configuration instead.

Its findings still carry a suppression key: Configuration pointer and failed keyword, such as /targets/typescript:required:packageName.

Config/StaleEndpoint

A configured endpoint no longer exists in the OpenAPI document.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A configured endpoint has no matching operation in the document, so the method is skipped. Usually an operation that was removed or renamed while the configuration still places it.

Changing or silencing it

Each finding's suppression key is the endpoint, such as get /pets/{id}.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/StaleEndpoint": "info"
    },
    "ignored": {
      "Config/StaleEndpoint": "<suppression key>"
    }
  }
}

Config/UnknownBodyContentType

A method's bodyContentType is not a media type its operation accepts, so it was left out.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A method or alias was left out because its bodyContentType names a media type the operation's request body does not declare. The message lists the ones it does.

Changing or silencing it

Each finding's suppression key is the method's dotted config address, such as notes.create_text.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnknownBodyContentType": "info"
    },
    "ignored": {
      "Config/UnknownBodyContentType": "<suppression key>"
    }
  }
}

Config/UnknownPublishKey

A publish block carries a key that is neither a registry nor a reserved option.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A publish block carries a key that is neither a registry the target supports nor a reserved option such as signing, usually a misspelling.

Changing or silencing it

Each finding's suppression key is targets.<target>.publish.<key>.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnknownPublishKey": "info"
    },
    "ignored": {
      "Config/UnknownPublishKey": "<suppression key>"
    }
  }
}

Config/UnknownPublishOption

A publish registry entry carries a key the config schema does not declare.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A registry entry under publish carries a key the configuration schema does not declare.

Changing or silencing it

Each finding's suppression key is targets.<target>.publish.<registry>.<key>.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnknownPublishOption": "info"
    },
    "ignored": {
      "Config/UnknownPublishOption": "<suppression key>"
    }
  }
}

Config/UnresolvableDestinationRepo

A destination repository is not a GitHub owner/repo, so the GitHub-only fields are omitted.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A destination repository is not a GitHub owner/repo, so the GitHub-only fields in generated package metadata are left out.

Changing or silencing it

Each finding's suppression key is targets.<target>.destinations.production.repo.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnresolvableDestinationRepo": "info"
    },
    "ignored": {
      "Config/UnresolvableDestinationRepo": "<suppression key>"
    }
  }
}

Config/UnresolvedMethodEndpoint

A method names no operation the generator can place, so it is left out.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

An http, websocket or helper method names no operation: its endpoint is not written as "<verb> <path>" (or "grpc <package>.<Service>/<Method>"), and it has no verb and path either, so it is left out of every SDK. The message quotes what the method wrote.

Changing or silencing it

Each finding's suppression key is the method's dotted config address, such as users.list.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnresolvedMethodEndpoint": "info"
    },
    "ignored": {
      "Config/UnresolvedMethodEndpoint": "<suppression key>"
    }
  }
}

Config/UnsupportedPackageManager

A target names a package manager its generated workflows do not support, so they use npm.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

targets.typescript.packageManager or targets.cli.packageManager names a package manager other than npm, pnpm, yarn or bun, such as deno or a near miss like pnpm@10.4.0. The value still loads, and the target's generated workflows install and build with npm. Set a supported value, or remove the key.

Changing or silencing it

Each finding's suppression key is targets.<target>.packageManager.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnsupportedPackageManager": "info"
    },
    "ignored": {
      "Config/UnsupportedPackageManager": "<suppression key>"
    }
  }
}

Config/UnusedRevocationUrl

The CLI revocation URL is on no OAuth token endpoint’s origin, so logout never uses it.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

The CLI's credentialStore.oauth.revocationUrl, resolved against every configured environment and server, is not on the origin (scheme, host and port) of any OAuth token endpoint the CLI signs in with. The CLI only revokes at an endpoint on the same origin as the one that issued the token, so logout never uses this URL and only deletes the local copy. Not reported when the answer depends on the running CLI, such as with an OpenID Connect scheme. Set an absolute URL on the token endpoint's origin, or remove it.

Changing or silencing it

Each finding's suppression key is targets.cli.credentialStore.oauth.revocationUrl.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnusedRevocationUrl": "info"
    },
    "ignored": {
      "Config/UnusedRevocationUrl": "<suppression key>"
    }
  }
}

Config/UnusedSecuritySchemeSettings

A security scheme settings entry names no OAuth 2.0 or OpenID Connect scheme, so nothing uses it.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

An openapi.securitySchemeSettings key names no OAuth 2.0 or OpenID Connect security scheme in the API description, usually a misspelled scheme id or a scheme the API dropped. Its resource and audience settings reach no generated client, so clients still sign in but get a token for whichever API the authorization server picks by default. Rename the key to the scheme id, or remove the entry.

Changing or silencing it

Each finding's suppression key is the securitySchemeSettings key.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/UnusedSecuritySchemeSettings": "info"
    },
    "ignored": {
      "Config/UnusedSecuritySchemeSettings": "<suppression key>"
    }
  }
}

Config/WebhookAlwaysVerifyNoDecoder

A webhook helper always verifies and has no parseUnsafe, so nothing decodes without verifying.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A webhook helper sets webhook.alwaysVerify and the compiler generates no parseUnsafe companion for it (helpers: false, helpers.parseUnsafe: false, or a configured name it leaves out: one repeating the parse method's name or the generated verifySignature companion's, one taking another verifying companion's name under Config/WebhookHelperNameUnsafe, or one with no letter or digit), so nothing but Rust's <Union>::parse decodes a delivery without verifying it. Dart, which never generates parse_unsafe, is not reported, nor is a parseUnsafe one target leaves out for clashing with another member of its class.

Changing or silencing it

Each finding's suppression key is the alwaysVerify pointer, such as /resources/webhooks/methods/parse/webhook/alwaysVerify.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/WebhookAlwaysVerifyNoDecoder": "info"
    },
    "ignored": {
      "Config/WebhookAlwaysVerifyNoDecoder": "<suppression key>"
    }
  }
}

Config/WebhookHelperNameUnsafe

A webhook helper's parseUnsafe takes a verifying companion's name, so it is not generated.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A webhook helper's helpers.parseUnsafe takes a verifying companion's name (verify_signature, unwrap, or the name given to either, on this helper or a sibling on the same resource). The method decodes without verifying, so it is not generated rather than read as one that verifies.

Changing or silencing it

Each finding's suppression key is the parseUnsafe pointer, such as /resources/webhooks/methods/parse/webhook/helpers/parseUnsafe.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/WebhookHelperNameUnsafe": "info"
    },
    "ignored": {
      "Config/WebhookHelperNameUnsafe": "<suppression key>"
    }
  }
}

Config/WebhookHelperNoEvents

A webhook helper matches no webhook event, so it has nothing to decode.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A webhook helper matches no webhook event and no Config/WebhookUnknownEventType explains it: an empty eventTypes map on a document with no top-level webhooks.

Changing or silencing it

Each finding's suppression key is the method pointer, such as /resources/webhooks/methods/unwrap.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/WebhookHelperNoEvents": "info"
    },
    "ignored": {
      "Config/WebhookHelperNoEvents": "<suppression key>"
    }
  }
}

Config/WebhookTypeNameConflict

A webhook helper's typeName names a type the SDK already declares, so it is ignored.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A webhook helper's webhook.typeName names its event union after a type the SDK already declares (a model, a webhook event, another helper's union, a websocket event type) or does not end in Event, so the helper keeps its default union name.

Changing or silencing it

Each finding's suppression key is the typeName pointer, such as /resources/webhooks/methods/parse/webhook/typeName.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/WebhookTypeNameConflict": "info"
    },
    "ignored": {
      "Config/WebhookTypeNameConflict": "<suppression key>"
    }
  }
}

Config/WebhookUnknownEventType

A webhook helper's eventTypes key names no webhook event in the document.

Default severity Fix lives in
warn Your SDK configuration (config)

When it fires

A webhook helper's webhook.eventTypes lists a key that names no webhook event in the document. An event's name is its operationId when it has one and its key under webhooks otherwise, so a key spelled any other way selects nothing. The message lists the document's event names and suggests the likely one; renaming the key to it is offered as an unsafe fix.

Changing or silencing it

Each finding's suppression key is the eventTypes key pointer, such as /resources/webhooks/methods/unwrap/webhook/eventTypes/widget.created.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Config/WebhookUnknownEventType": "info"
    },
    "ignored": {
      "Config/WebhookUnknownEventType": "<suppression key>"
    }
  }
}

See also

What did you think of this content?