Proposal on Decorations Processing #180
KindsonTheGenius
started this conversation in
Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Backend Decorations Processing
This document provides a proposal on backend decorations processing in Morphir and follows from Proposal on How to Handle Decorations
What is Backend Decorations Processing?
In the context of this document, it means use of selected decoration(s) optionally for code generation by the current backend.
For example backend decorations processing
Current Fundamentals and Assumptions
Objectives
Approach
Recommendations
There should be a particular standard structure for decorations:
A record type with three fields:
For example
Benefits of this Approach
We have a high level of flexibility in two areas:
The metadata field could be more complex data structure holding additional processing-related data, but for this iteration, it would be a string containing information about the backend it applies to
At the backend, we have access to the decorations dictionary and decorations package (if package management is finally implemented). The package would provide us the type information about the decoration for derialization as needed.
This way, the backend would only retrieve only decorations that apply to the specific backend.
Decoration Boundaries
Decoration boundaries refer to constraints or restriction that would necessarily need to be enforced as it relates to decoration. There are three types (maybe more) of boundaries to consider:
Beta Was this translation helpful? Give feedback.
All reactions