Skip to content

Validation of uriParameter fails when using custom type #405

@bennidi

Description

@bennidi

I would like to use my custom types in uriParamer parts of the resource description. It seems that the console does not handle these correctly because it shows a validation error for a valid entry. When I inline the type definition it works.

# This works

/{user}/{feature}:
  uriParameters:
    feature:
      type: string
      enum:
          - A
          - B
          - C

# Validation breaks here

types:
  Feature:
    type: string
    enum:
        - A
        - B
        - C

/{user}/{feature}:
  uriParameters:
    feature:
      type: Feature

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions