Skip to content

Correct Value not accepted in required attribute #276

@CLaborieSLB

Description

@CLaborieSLB

Describe the bug
Getting error "Value is not accepted. Valid values: true" for the required attribute in my path parameter description... while the value I have in my YAML file is actually true.

To Reproduce
/pets/{pet-key}:
get:
tags:
- 'Animals'
summary: 'Returns a single Pet based on its Key'
description: 'Returns a single Pet based on its unique Pet Key'
operationId: getPetByKey
parameters:
- name: pet-key
in: path
required: true
schema:
type: string
description: 'The Pet Key'

Expected behavior
Value is true (ie. correct and expected) so no error should be raised.

Screenshots

Image

Environment:

  • Extension version: 1.1.4
  • VS Code version: 1.100.2
  • Operating System: Windows 11 Enterprise

Additional context
Started appearing recently on all my APIs... while I did not have the issue earlier

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