Comments (3)
Hi @carlosneves0, the CEL component does not have access to the request body.
Why don't you use schema validation? https://www.krakend.io/docs/endpoints/json-schema/
You could check that the object contains a Foo property, with a Bar property, and is within an enum: ["baz"]
from krakend-ce.
Thanks for the reply, @alombarte
Schema validation will be useful in some of our use-cases, although it must be at the endpoint object; and may not be specified at the backend object.
It seems to us, in the end, that the routing logic that needs to peek at the body will have to live outside of krakend.
from krakend-ce.
This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.
from krakend-ce.
Related Issues (20)
- Feature Request: Support for Server-Sent Events (SSE) in KrakenD API Gateway HOT 4
- Hot reloading not working - error parsing the configuration file, unexpected end of JSON input HOT 2
- v2.5 change on propagate_claims won't allow us to upgrade HOT 1
- When returning error from request modifier from backend, skips the response aggregation step.
- Error responses' Content-Type is always returned as text/plain for the client HOT 1
- Redirect to custom URL HOT 2
- Use values in body sent to gateway and send them as header values to the service HOT 3
- [HELP] make build fails with error = untyped int constant as int value in assignment (overflows) HOT 4
- auth/validator need to be configured all end points HOT 2
- Error relocating grpc-gateway.so: unsupported relocation type 7 HOT 1
- Unable to handle query string with space character(%20) , getting error HOT 2
- Simultaneous loading of client and server plugins does not load the server one HOT 1
- KrakenD returns empty response for collection endpoint HOT 1
- Error #01: context canceled HOT 3
- Unable to get headers and statuscode using the examples HOT 1
- Create a queue in rabbitmq HOT 2
- Link to 'Docs' for Endpoint Rate Limit in Designer links to a page that no longer exists HOT 1
- Moving token from querystring to header before validate it HOT 2
- How to configure Krakend to support Upload File Endpoint HOT 2
- HEAD method is not supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krakend-ce.