Skip to content

Commit

Permalink
fix:repair openapi description of attrs (#413)
Browse files Browse the repository at this point in the history
Co-authored-by: lyq <>
  • Loading branch information
lyqgit authored Sep 13, 2023
1 parent 0b6ec30 commit a036fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oapi-macros/src/endpoint/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(crate) struct EndpointAttr<'p> {
impl Parse for EndpointAttr<'_> {
fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
const EXPECTED_ATTRIBUTE_MESSAGE: &str =
"unexpected identifier, expected any of: operation_id, request_body, responses, parameters, tag, security";
"unexpected identifier, expected any of: operation_id, request_body, responses, parameters, tags, security";
let mut attr = EndpointAttr::default();

while !input.is_empty() {
Expand Down

0 comments on commit a036fd4

Please sign in to comment.