Notice also that FlaskOpenAPIRequest is still being used since this change is being rolled out gradually. In the future, it'll be replaced by a starlette request instance. From this point forward any napps can use the @validate_openapi to o validate OpenAPI routes.
Local Tests
I'm temporarily using this feat/openapi_dcorator branch on mef_eline too to quickly explore, and managed to create an EVC:
{
"circuit_id": "f5c649b0c2964e"
}
Also, as expected the validations in place now imported from core on mef_eline still works:
{
"code": 400,
"description": "The request body contains invalid API data. 1 is not of type 'string' for field uni_a/interface_id.",
"name": "Bad Request"
}
Closes #261 Closes #346
Summary
See updated changelog file.
Notice also that
FlaskOpenAPIRequest
is still being used since this change is being rolled out gradually. In the future, it'll be replaced by astarlette
request instance. From this point forward any napps can use the@validate_openapi
to o validate OpenAPI routes.Local Tests
feat/openapi_dcorator
branch onmef_eline
too to quickly explore, and managed to create an EVC:mef_eline
still works:End-to-End Tests
I've explored it locally, I'll rerun this e2e tests here https://github.com/kytos-ng/kytos-end-to-end-tests/pull/218, once I open a new PR on mef_eline soon.