mirror of
https://github.com/ysoftdevs/wapifuzz.git
synced 2026-01-15 16:13:27 +01:00
Adding query attributes
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Models
|
||||
|
||||
public string Type { get; set; }
|
||||
public string Format { get; set; }
|
||||
public string Location { get; set; }
|
||||
|
||||
public UriAttribute(string name, bool required)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,8 @@ namespace Parser
|
||||
ContentParser.GetSingleExample(parameter.Schema?.Example) ??
|
||||
PrimitiveDataTypeExampleGenerator.GenerateExampleValueByType(parameter.Schema.Type, parameter.Schema.Format),
|
||||
Type = parameter.Schema.Type,
|
||||
Format = parameter.Schema.Format
|
||||
Format = parameter.Schema.Format,
|
||||
Location = parameter.In == ParameterLocation.Path ? "Path" : "Query"
|
||||
};
|
||||
return attribute;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user