File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -131,20 +131,18 @@ impl OpenapiSchema {
131131 }
132132}
133133
134- /**
135- This trait needs to be implemented by every type that is being used in the OpenAPI Spec. It gives
136- access to the [OpenapiSchema] of this type. It is provided for primitive types, String and the
137- like. For use on your own types, there is a derive macro:
138-
139- ```
140- # #[macro_use] extern crate openapi_type_derive;
141- #
142- #[derive(OpenapiType)]
143- struct MyResponse {
144- message: String
145- }
146- ```
147- */
134+ /// This trait needs to be implemented by every type that is being used in the OpenAPI Spec. It gives
135+ /// access to the [OpenapiSchema] of this type. It is provided for primitive types, String and the
136+ /// like. For use on your own types, there is a derive macro:
137+ ///
138+ /// ```
139+ /// # #[macro_use] extern crate openapi_type_derive;
140+ /// #
141+ /// #[derive(OpenapiType)]
142+ /// struct MyResponse {
143+ /// message: String
144+ /// }
145+ /// ```
148146pub trait OpenapiType {
149147 fn schema ( ) -> OpenapiSchema ;
150148}
You can’t perform that action at this time.
0 commit comments