Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalized handling of meta object #1063

Open
maurei opened this issue Sep 1, 2021 · 1 comment
Open

Generalized handling of meta object #1063

maurei opened this issue Sep 1, 2021 · 1 comment
Labels

Comments

@maurei
Copy link
Member

maurei commented Sep 1, 2021

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:

  • JsonApiOptions.IncludeTotalResourceCount
  • Implementations of IResponseMeta
  • Implementations of ResourceDefinitions.GetMeta(TResource)

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

@bkoelman
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants