Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.
This repository was archived by the owner on May 10, 2024. It is now read-only.

Issue with adding a property called type to an object #182

@twoplustwoone

Description

@twoplustwoone

When defining the body for a post method, if I define the body to be an object with a property called type, the behavior is flaky and incorrect.

For example:

/postMethod:
  post:
    body:
      type: object
      properties:
        name: string
        age: number
        type: string

Will create a validation where the body of /postMethod is expected to be a string rather than an object. This is because the parser interprets the type property to be referring to the type of the object, rather than a property of the object

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions