[CRUD Service] array fields not filtered in array of objects with JSON Schema #158
-
Hi! I've defined a crud data model in the In the details section, I've defined the following JSON Schema:
However, If a record on Mongo has the following item inside the location array:
the crud service returns after a GET request the array location with the field What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @giovf96. It could be a bug since, of course, If you're working with the Console, can you give a look at the config map generated (from the Repository, inside the folder config-maps/crud-service) to verify if the JSON schema generated is the same expected from your configuration? Also, may I ask you what version of the CRUD Service are you using? |
Beta Was this translation helpful? Give feedback.
-
It sounds like a bug to me, since this should work fine. I've tried myself and it looks it works fine with the GET /:id requests, not the GET / requests (which return a list). We're opening an issue about it and try to find a quick solution to it. |
Beta Was this translation helpful? Give feedback.
It sounds like a bug to me, since this should work fine. I've tried myself and it looks it works fine with the GET /:id requests, not the GET / requests (which return a list).
We're opening an issue about it and try to find a quick solution to it.