Summary
The format
keyword allows for basic
semantic identification of certain kinds of string values that are
commonly used. For example, because JSON doesn't have a "DateTime"
type, dates need to be encoded as strings.
format
allows the schema author to
indicate that the string value should be interpreted as a date. By
default, format
is just an annotation and
does not affect validation.
Optionally, validator implementations can [...] enable
format
to function as an assertion rather
than just an annotation.
- Namespace
-
GitVersion
.Configuration .Attributes - Base Types
-
- object
graph BT Type-->Base0["object"]
Type["JsonPropertyFormatAttribute"] class Type type-node
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class JsonPropertyFormatAttribute
Attributes
Type | Description |
---|---|
AttributeUsage |
Extension Methods
Name | Value | Summary |
---|---|---|
NotNull |
T |
From
CommonExtensions
|