MD-Studio / MDStudio

A general framework for microservice based distributed applications
Apache License 2.0
12 stars 0 forks source link

Endpoint JSON Schema's only registered if they match endpoint name #150

Open marcvdijk opened 5 years ago

marcvdijk commented 5 years ago

Take the following endpoint decorator as example:

@endpoint('async_liemd_ligand', 'liemd_ligand_request', 'async_liemd_response', options=RegisterOptions(invoke='roundrobin'))

I'm unable to call this endpoint resulting in the following error:

schema.exception.SchemaException: Schema name "async_liemd_ligand_request" with type
"endpoint", and version "1" on "mdgroup/lie_md" was not found

When I change the request endpoint name from 'liemd_ligand_request' to 'async_liemd_ligand_request' thus matching the endpoint name and making sure the associated JSON schema file is available the call to the endpoint works again.

I think is undesirable behaviour as: