1
0
Fork 0
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:
Dominic 2019-10-13 23:19:34 +02:00
parent 81988c4ef0
commit 286466fcc9
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 4 additions and 28 deletions

View file

@ -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();