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

Asset serializer: Add serializer method field resolved_middleware. #1740

Closed
rithviknishad opened this issue Dec 4, 2023 · 0 comments · Fixed by #1741
Closed

Asset serializer: Add serializer method field resolved_middleware. #1740

rithviknishad opened this issue Dec 4, 2023 · 0 comments · Fixed by #1741
Assignees

Comments

@rithviknishad
Copy link
Member

Add a serializer method field resolved_middleware, which returns something like:

{
  "resolved_middleware": {
    "address": "dev_middleware.ohc.network",
    "source": "facility"
  }
}
@rithviknishad rithviknishad self-assigned this Dec 4, 2023
vigneshhari pushed a commit that referenced this issue Dec 7, 2023
* Add `resolved_middleware` JSON field to Asset Serializer.
fixes #1740;

* update schema to be nullable field

* move resolving as a utility method in model

* Adds `ResolvedMiddlewareField`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant