Skip to content
Last updated

spec-no-required-params-after-optional

Required parameters must appear before any optional parameters in each method's params list.

Open-RPCCompatibility
1.x

API design principles

Placing required parameters after optional ones matches common RPC and Open-RPC conventions and avoids ambiguous positional calling patterns.

Configuration

OptionTypeDescription
severitystringPossible values: off, warn, error. Default error (in recommended ruleset).
rules:
  spec-no-required-params-after-optional: error

Resources