mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
finally get rid of the helper
This commit is contained in:
parent
81988c4ef0
commit
286466fcc9
3 changed files with 4 additions and 28 deletions
|
@ -48,7 +48,7 @@ fn expand_enum(input : ItemEnum) -> TokenStream2
|
|||
{
|
||||
fn to_schema() -> ::gotham_restful::OpenapiSchema
|
||||
{
|
||||
use ::gotham_restful::{helper::openapi::*, OpenapiSchema};
|
||||
use ::gotham_restful::{export::openapi::*, OpenapiSchema};
|
||||
|
||||
let mut enumeration : Vec<String> = Vec::new();
|
||||
|
||||
|
@ -130,7 +130,7 @@ pub fn expand_struct(input : ItemStruct) -> TokenStream2
|
|||
{
|
||||
fn to_schema() -> ::gotham_restful::OpenapiSchema
|
||||
{
|
||||
use ::gotham_restful::{helper::openapi::*, OpenapiSchema};
|
||||
use ::gotham_restful::{export::{openapi::*, IndexMap}, OpenapiSchema};
|
||||
|
||||
let mut properties : IndexMap<String, ReferenceOr<Box<Schema>>> = IndexMap::new();
|
||||
let mut required : Vec<String> = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue