Replies: 3 comments 1 reply
-
@roehst, the short answer to your question is "no, BaseSecurityTransaction should not inherit from BaseTransaction". The Would you say the choice of the prefix |
Beta Was this translation helpful? Give feedback.
-
Hey @roehst, @pjohnmeyer I agree that the prefix "Base" made sense early on, but since switching to a composition structure (done in PR #80 in January) it has come to be somewhat misleading nomenclature. I think changing the naming scheme for all primitives would certainly have value for this project, and prevent further confusion on this from new members Instead of e.g.: I can think of a few possible substitute names: HasObjectTraits HasObjectAttributes I put my favourite at the top, the Has*Def variant. We could also leave off the word "Has" in any of the above options as well, but I think it helps to demonstate the "has a" relationship that is composition. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Yes, the naming of the entities make up an hierarchy in my mind. I read it as base security transactions are base transactions which are base objects, implying that the base object reference would me redundant. Which left me confused also about what was the relation of BaseAcceptance and the other JSON schemas in the allOf composition. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, folks!
I am writing a tool to translate the JSON schema files to a
.dot
file, so we can get a quick glimpse of all the relations using GraphViz.allOf
entries in Schemas.In schema
https://opencaptablecoalition.com/schema/objects/transactions/acceptance/StockAcceptance.schema.json
I see the following entries inallOf
:I see that
BaseSecurityTransaction
does not includeBaseTransaction
as anallOf
entry.As far as plotting is concerned, having BaseTransaction inherit from BaseSecurityTransaction would make the plot much cleaner.
But first, I would like to understand the schema better.
I found no issues or discussions regarding Inheritance for this specific case.
Should
BaseSecurityTransaction
inherit fromBaseTransaction
? If not, what is the rationale for this choice?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions