Unable to create Action for Rest API #9710
Unanswered
prabuanandan
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to create action for one of the post Rest API call but while creating the action it gives me
Creating action failed parsing NonEmpty failed, unexpected empty list
attaching the below swagger to reproduce the issue any help would be appreciated
{ "openapi": "3.0.2", "info": { "title": "Optimisier API", "description": "", "contact": { "name": "Data ", "email": "[email protected]" }, "version": "0.1.4" }, "paths": { "/optimise": { "post": { "tags": [ "optimise" ], "summary": "Optimise", "operationId": "optimise_optimise_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OptimiserRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OptimiserResponse" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPError" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPError" } } } }, "503": { "description": "Service Unavailable", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPError" } } } } } } } }, "components": { "schemas": { "HTTPError": { "title": "HTTPError", "required": [ "detail" ], "type": "object", "properties": { "detail": { "title": "Detail", "type": "string" } }, "description": "HTTP error schema to be used when an
HTTPExceptionis thrown." }, "HTTPValidationError": { "title": "HTTPValidationError", "type": "object", "properties": { "detail": { "title": "Detail", "type": "array", "items": { "$ref": "#/components/schemas/ValidationError" } } } }, "OptimiserRequest": { "title": "OptimiserRequest", "required": [ "gene_name" ], "type": "object", "properties": { "gene_name": { "title": "Gene Name", "type": "string", "description": "The name of the gene" } } }, "OptimiserResponse": { "title": "OptimiserResponse", "type": "object", "properties": { "gene_name": { "title": "Gene Name", "type": "string" } } }, "ValidationError": { "title": "ValidationError", "required": [ "loc", "msg", "type" ], "type": "object", "properties": { "loc": { "title": "Location", "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] } }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } } } } } }
Beta Was this translation helpful? Give feedback.
All reactions