Skip to content

Populate OpenAPI summary field with first line of endpoint doc comments#252

Merged
ahl merged 3 commits intomainfrom
openapi-summary
Jan 21, 2022
Merged

Populate OpenAPI summary field with first line of endpoint doc comments#252
ahl merged 3 commits intomainfrom
openapi-summary

Conversation

@ahl
Copy link
Copy Markdown
Collaborator

@ahl ahl commented Jan 21, 2022

Fixes #244

This change causes Dropshot to infer that the first line of the doc commend on an endpoint is the summary; subsequent lines (if there are any) are the description.

Note that there's going to be a bunch of follow-on work required in omicron to properly document endpoints.

@ahl ahl requested a review from davepacheco January 21, 2022 01:21

[dependencies.syn]
version = "1.0.85"
version = "1.0"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is basically unrelated: I'm all for this but FYI I think it's dependabot that's replacing these with more specific versions when it updates deps. It doesn't always do this and I'm not sure exactly when it does. If the Renovate experiment goes well I hope it will give us more control over this.

);
}

#[test]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tests.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the use of my dope schema crate! ;-)

@ahl ahl merged commit f98d611 into main Jan 21, 2022
@ahl ahl deleted the openapi-summary branch January 21, 2022 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generate openapi summary

2 participants