You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's assume I have the following entities in my CAP project and expose them directly via an OData service:
using {managed} from '@sap/cds/common';
entity Authors {
key name: String(64);
age: Integer;
[...]
reviews: Association to many Reviews on reviews.reviewee = $self;
}
entity Reviews : managed {
key uuid: UUID
reviewee: Association to Authors;
rating: Integer;
[...]
}
I specify the desired OData flavor explicitly in my .cdsrc.json file like this:
{
"odata": {
"flavor": "x4"
}
}
Now, if I do a GET .../Reviews('43cf695f-4a13-4666-1240-d473f40fb23b') I would receive a response object like this one:
Let's assume I have the following entities in my CAP project and expose them directly via an OData service:
I specify the desired OData flavor explicitly in my
.cdsrc.json
file like this:Now, if I do a
GET .../Reviews('43cf695f-4a13-4666-1240-d473f40fb23b')
I would receive a response object like this one:The cds-swagger-ui-express library instead generates a swagger UI with a response object like this:
I guess the library cannot handle the custom OData flavor correctly in this case.
The text was updated successfully, but these errors were encountered: