Skip to content

[Bug]: Inconsistent Example Schema for Request Body of Stored-Procedure in Swagger UI #1509

@abhishekkumams

Description

@abhishekkumams

What happened?

Example schema for request body shown for stored-procedure is not consistent.

To reproduce:

  1. Use the dab-config.MsSql.json to start the engine.
  2. open the swagger UI through the endpoint : https://localhost:5001/swagger

Inconsistencies noted:

  1. Empty schema for request Body shown for /InsertBook (missing parameter info)
    image

  2. Incorrect request body schema shown for /CountBook, (should be empty json, as it doesn’t need params)
    image

  3. Incorrect request body schema shown for /UpdateBookTitle, (publisher_id is not required in the request payload.)
    image
    Similar issue with /GetAuthorsHistoryByFirstName and /InsertAndDisplayAllBooksUnderGivenPublisher

Version

0.7.5

What database are you using?

Azure SQL

What hosting model are you using?

Local (including CLI)

Which API approach are you accessing DAB through?

REST

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions