-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
12 changed files
with
335 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
|
||
namespace SwaggerWcf.Attributes | ||
{ | ||
/// <summary> | ||
/// Describe a parameter | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public class SwaggerWcfHeaderAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Describes a parameter | ||
/// </summary> | ||
/// <param name="name">Parameter name</param> | ||
/// <param name="required">Set parameter as required. Defaults is false.</param> | ||
/// <param name="description">Parameter description.</param> | ||
/// <param name="defaultValue">Parameter default value.</param> | ||
public SwaggerWcfHeaderAttribute(string name, bool required = false, string description = null, string defaultValue = null) | ||
{ | ||
Name = name; | ||
Required = required; | ||
Description = description; | ||
DefaultValue = defaultValue; | ||
} | ||
|
||
/// <summary> | ||
/// Name of this parameter | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Defines if this parameter is required in operations | ||
/// </summary> | ||
public bool Required { get; set; } | ||
|
||
/// <summary> | ||
/// Description of this parameter | ||
/// </summary> | ||
public string Description { get; set; } | ||
|
||
/// <summary> | ||
/// Default value of this parameter | ||
/// </summary> | ||
public string DefaultValue { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ internal enum InType | |
Body = 1, | ||
Path = 2, | ||
Query = 3, | ||
FormData = 4 | ||
FormData = 4, | ||
Header = 5 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.