9 [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.ReturnValue |
10 AttributeTargets.Property | AttributeTargets.Field,
11 Inherited =
true, AllowMultiple =
false)]
22 this.ContentType =
null;
35 this.ContentType =
null;
49 this.ContentType =
null;
102 public override void Annotate(Dictionary<string, object?> Schema)
104 base.Annotate(Schema);
106 Schema[
"format"] =
"uri";
118 base.GetHtmlInputAttributes(Attributes);
119 Attributes[
"type"] =
"url";
string? Title
Title of parameter.
string? Description
Description of parameter.
Provides meta-data about a string-valued parameter.
int? MinLength
Minimum length of string.
int? MaxLength
Maximum length of string.
Provides meta-data about a URI-valued parameter.
McpUriParameterAttribute(string? Title, string? Description)
Provides meta-data about a URI-valued parameter.
McpUriParameterAttribute(string? Title, string? Description, int MaxLength)
Provides meta-data about a string-valued parameter.
override void GetHtmlInputAttributes(Dictionary< string, string > Attributes)
Gets HTML input attributes for the parameter, if any.
string? ContentType
Content-Type of the content the URI points to.
override void Annotate(Dictionary< string, object?> Schema)
Annotates a schema object with information in the attribute.
McpUriParameterAttribute(string? Title, string? Description, int MaxLength, string ContentType)
Provides meta-data about a string-valued parameter.
McpUriParameterAttribute(string? Title, string? Description, string ContentType)
Provides meta-data about a URI-valued parameter.
McpUriParameterAttribute(string? Title, string? Description, int MinLength, int MaxLength)
Provides meta-data about a string-valued parameter.
McpUriParameterAttribute(string? Title, string? Description, int MinLength, int MaxLength, string ContentType)
Provides meta-data about a string-valued parameter.