json-api-dotnet / JsonApiDotNetCore

A framework for building JSON:API compliant REST APIs using ASP.NET and Entity Framework Core.
https://www.jsonapi.net
MIT License
680 stars 159 forks source link

Generalized handling of `meta` object #1063

Open maurei opened 3 years ago

maurei commented 3 years ago

Currently the OpenApi integration only assumes a meta object at the top-level of a response document.

In JADNC it is possible to include metadata at places deeper in the document structure as well. The following places can be used to configure metadata:

Upon adding meta to schemas during the generation, these configurations should be taken into account.

bkoelman commented 4 months ago

Should review all places in the JSON:API spec where meta can occur, and possibly update JADNC accordingly. Then review the OpenAPI models, including atomic operations.