Skip to main content

required-method-parameter-name

Overview

This rule belongs to the io-docs-validation ruleset and states that:

A parameter defined in the parameters section must specify the name for the parameter using the name property (for legacy I/O Docs versions) or the title property (for I/O Docs Mashery verison). The name is API/service defined and must not be null or empty.

PropertyValue
EnabledYes
Maximum SeverityError
MessageMethod parameter name is missing.
CodeIODOCS_V100
TypeValidation
Rule SystemSemantic
Broad CategoryMethods
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsio docs semantic validation name parameter

Suggested Fixes

  • If you are using a legacy I/O Docs Node.js file, add property name in the parameter definition object.
  • If you are using I/O Docs Mashery version, add property title in the parameter definition object.
  • Make sure that the name value is not null or empty.
  • The name of the parameter must match exactly with the name of the parameter expected by the API. Names may be compared in a case-sensitive manner.

For More Information