-
Notifications
You must be signed in to change notification settings - Fork 33
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
[BUG] Fix some types of BPMN Json model #444
Conversation
a55272b
to
c278e73
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM, just some questions
const json = { | ||
definitions: { | ||
targetNamespace: '', | ||
process: { | ||
association: [ | ||
{ | ||
id: 'association_id_0', | ||
name: 'association name', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ why removing the name? is something that does not exist in the BPMN spec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in the BPMN specification/XDS, there is no name in the association 😉
return element as T; | ||
} | ||
|
||
export function ensureIsArray<T>(elements: (T | string)[] | T | string, acceptEmptyString = false): Array<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ is the introduction of generics also done to cover #421 (remove usage of any)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see that. I introduce that to be sure what we manipulate after calling this method, in order to use the BPMN Json interfaces :)
Need in the future to simplify/merge BPMN Json model with our internal model, in order to remove some useless conversion