@@ -362,28 +362,28 @@ pub struct Operation {
362
362
#[ derive( Clone , Debug , Deserialize , Serialize , PartialEq , Default ) ]
363
363
pub struct Parameter {
364
364
/// The name of the parameter.
365
- name : String ,
365
+ pub name : String ,
366
366
/// values depend on parameter type
367
367
/// may be `header`, `query`, 'path`, `formData`
368
368
#[ serde( rename = "in" ) ]
369
- location : String ,
369
+ pub location : String ,
370
370
#[ serde( skip_serializing_if = "Option::is_none" ) ]
371
- required : Option < bool > ,
371
+ pub required : Option < bool > ,
372
372
#[ serde( skip_serializing_if = "Option::is_none" ) ]
373
- schema : Option < Schema > ,
373
+ pub schema : Option < Schema > ,
374
374
#[ serde( skip_serializing_if = "Option::is_none" ) ]
375
375
#[ serde( rename = "uniqueItems" ) ]
376
- unique_items : Option < bool > ,
376
+ pub unique_items : Option < bool > ,
377
377
/// string, number, boolean, integer, array, file ( only for formData )
378
378
#[ serde( skip_serializing_if = "Option::is_none" ) ]
379
379
#[ serde( rename = "type" ) ]
380
- param_type : Option < String > ,
380
+ pub param_type : Option < String > ,
381
381
#[ serde( skip_serializing_if = "Option::is_none" ) ]
382
- format : Option < String > ,
382
+ pub format : Option < String > ,
383
383
/// A brief description of the parameter. This could contain examples
384
384
/// of use. GitHub Flavored Markdown is allowed.
385
385
#[ serde( skip_serializing_if = "Option::is_none" ) ]
386
- description : Option < String > ,
386
+ pub description : Option < String > ,
387
387
// collectionFormat: ???
388
388
// default: ???
389
389
// maximum ?
@@ -575,22 +575,22 @@ pub struct Header {
575
575
// FIXME: Is the third change properly implemented?
576
576
// FIXME: Merge `ObjectOrReference<Header>::Reference` and `ParameterOrRef::Reference`
577
577
#[ serde( skip_serializing_if = "Option::is_none" ) ]
578
- required : Option < bool > ,
578
+ pub required : Option < bool > ,
579
579
#[ serde( skip_serializing_if = "Option::is_none" ) ]
580
- schema : Option < Schema > ,
580
+ pub schema : Option < Schema > ,
581
581
#[ serde( skip_serializing_if = "Option::is_none" ) ]
582
582
#[ serde( rename = "uniqueItems" ) ]
583
- unique_items : Option < bool > ,
583
+ pub unique_items : Option < bool > ,
584
584
/// string, number, boolean, integer, array, file ( only for formData )
585
585
#[ serde( skip_serializing_if = "Option::is_none" ) ]
586
586
#[ serde( rename = "type" ) ]
587
- param_type : Option < String > ,
587
+ pub param_type : Option < String > ,
588
588
#[ serde( skip_serializing_if = "Option::is_none" ) ]
589
- format : Option < String > ,
589
+ pub format : Option < String > ,
590
590
/// A brief description of the parameter. This could contain examples
591
591
/// of use. GitHub Flavored Markdown is allowed.
592
592
#[ serde( skip_serializing_if = "Option::is_none" ) ]
593
- description : Option < String > ,
593
+ pub description : Option < String > ,
594
594
// collectionFormat: ???
595
595
// default: ???
596
596
// maximum ?
0 commit comments