Namespace: Json.Schema.Generation.DataAnnotations
Inheritance: Base64StringAttributeAttributeHandler 🡒 FormatAttributeHandler<Base64StringAttribute> 🡒 object
Implemented interfaces:
- IAttributeHandler<Base64StringAttribute>
- IAttributeHandler
Adds a format keyword with base64.
Remarks
By default, format is an annotation only. No validation will occur unless configured to do so.
The base64 format is defined by the OpenAPI 3.1 specification.
Constructors
Base64StringAttributeAttributeHandler()
Creates a new Json.Schema.Generation.DataAnnotations.Base64StringAttributeAttributeHandler.
Declaration
1
public Base64StringAttributeAttributeHandler()
Methods
Apply(JsonSchemaBuilder builder)
Applies constraints for source generation.
Declaration
1
public static JsonSchemaBuilder Apply(JsonSchemaBuilder builder)
| Parameter | Type | Description |
|---|---|---|
| builder | JsonSchemaBuilder | The schema builder. |
Returns
The builder for chaining.