-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Add new tab with message binding to channel documentation and a… #1
base: master
Are you sure you want to change the base?
feat: Add new tab with message binding to channel documentation and a… #1
Conversation
✅ Deploy Preview for rainbow-profiterole-502abf ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
[value]="defaultExample?.value" | ||
(keyup)="recalculateLineCount('example', exampleTextArea.value)" | ||
></textarea> | ||
<div [hidden]="isEmptyObject(operation.message.bindings.get(protocolName))" fxLayout="column" fxLayoutGap="5px"> |
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 thought it might be a good idea to hide elements if they are not part of the spec (for headers and message binding). [hidden] is used instead of *ngif because ngif will not even render the components, which will result in issues with other code (ie reseting to default values)
[value]="headersExample?.value" | ||
(keyup)="recalculateLineCount('headers', headersTextArea.value)" | ||
></textarea> | ||
<app-json [json]="headersExample?.value"></app-json> |
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 switched the editable example to the message view and changed it to readonly here.
|
||
ngOnInit(): void { | ||
this.json = JSON.stringify(this.data, null, 2); | ||
this.json = this.json === undefined ? JSON.stringify(this.data, null, 2) : this.json; |
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 changed the component so that it can render object or json to make it more flexible for different use cases
…dd header and message binding example to example tab
…he backend can use the message binding to construct a message
… creates a specification without message binding
… to log statement when producing messages
Regression: Previously included mapped ui attributes chore: Improve [protocol: string]: any typings Co-authored-by: [email protected]
3ffd54e
to
967a029
Compare
…dd header and message binding example to example tab