-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support externalDocs. Closes #112 #177
Support externalDocs. Closes #112 #177
Conversation
b052d55
to
4d34d0b
Compare
4d34d0b
to
4523256
Compare
@@ -68,6 +76,21 @@ export default class Page extends Component { | |||
) | |||
} | |||
|
|||
findTagDocs (tagHandle, navigation) { |
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.
With this approach, the UI component is getting 'smart', as it is now understanding the relationship between services
and navigation
.
Another approach is to keep the UI component really simple, and handle externalDocs
at the parser level.
What do you reckon @brendo ?
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.
As discussed, bit tricky, the parser is then making assumptions that the UI can't display tag information together (which we currently can't, as the tags form the navigation).
Secondly the parser is a bit hairy to make this possible right now :(
@@ -230,7 +233,7 @@ function getUIParametersForLocation (parameters, location) { | |||
function getUIRequest (description, requestBody = null) { | |||
const uiRequest = {} | |||
|
|||
if (description) { | |||
if (description && description !== '') { |
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 an empty string would evaluate to false, as in https://developer.mozilla.org/en-US/docs/Glossary/Falsy?
Would like to add some additional snapshot tests before merging.
Features:
externalDocs
scenarios described in Add support for External Docs #112