openBackhaul / TypeApprovalRegister

Administrates the list of approvals of Applications.
Apache License 2.0
1 stars 8 forks source link

add property "additionalProperties: false" in /v1/document-embedding-status-in-gui req.body's schema of "if-unsuccessful" #401

Open sunil-kumar-meena opened 1 month ago

sunil-kumar-meena commented 1 month ago

Description: In /v1/document-embedding-status-in-gui API's request body has 2 schemas, and one schema with description "if-unsuccessful" is resulting a below error

{
"code": 400,
"message": "request.body should match exactly one schema in oneOf",
"errors": [
{
"path": ".body",
"message": "should match exactly one schema in oneOf",
"errorCode": "oneOf.openapi.validation"
}
]
}

Proposal: Proposing to add property "additionalProperties: false" in /v1/document-embedding-status-in-gui req.body's schema v1_documentembeddingstatusingui_body after "description: IF successfully-embedded == true" as shown below

        description: IF successfully-embedded == true
        additionalProperties: false