Skip to content

OpenAPI Description Decorator not Properly Escaped #68

Open
@mkamadeus

Description

@mkamadeus

As what the title says; description text is not properly escaped.

When I tried to give a description containing ' (single quote), the documentation stops completely, e.g:

@OpenAPI({
  description: "Get all student's LO",
  responses: {
    "200": {
      description: "OK",
    },
  },
})

When the single quote is removed, it works fine.

@OpenAPI({
  description: "Get all students LO",
  responses: {
    "200": {
      description: "OK",
    },
  },
})

A simple solution would be escaping the single quote with some regex or similar things.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions