Skip to content

path templating parameter name include '-' would caused validateRequest failed  #221

@jianyexi

Description

@jianyexi

I create a swagger with path templating , and one parameter name is 'key-name'
e.g.

"paths": {
    "/keys/{key-name}/create": {
      "post": {
      
        "parameters": [
          {
             "name":"key-name"
the request validate would always failed  with  result below:
{ code: 'MISSING_REQUIRED_PARAMETER',
            message: 'Value is required but was not provided',
            schemaPath: '#/paths/~1keys~1{key+name}~1create/post/parameters/0' } 

Since I refer to the swagger specification document , but I did not find any information about the parameter name could not include special character like '-'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions