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.
- Assembly
- GitVersion
.Configuration .dll - Namespace
- GitVersion
.Configuration .Attributes - Base Types
-
- JsonAttribute
graph BT
Type-->Base0["JsonAttribute"]
Type["JsonPropertyFormatAttribute"]
class Type type-node
Syntax
public sealed class JsonPropertyFormatAttribute : JsonAttribute
Attributes
| Type | Description |
|---|---|
| Attribute |
Constructors
Properties
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|