OpenApiPrimaryErrorMessageExtension Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension element for OpenAPI to add tag the primary error message to use on error types. x-ms-primary-error-message
public class OpenApiPrimaryErrorMessageExtension : Microsoft.OpenApi.IOpenApiExtension
type OpenApiPrimaryErrorMessageExtension = class
interface IOpenApiExtension
Public Class OpenApiPrimaryErrorMessageExtension
Implements IOpenApiExtension
- Inheritance
-
OpenApiPrimaryErrorMessageExtension
- Implements
Constructors
| Name | Description |
|---|---|
| OpenApiPrimaryErrorMessageExtension() | |
Properties
| Name | Description |
|---|---|
| IsPrimaryErrorMessage |
Whether this property is the primary error message to use on error types. |
| Name |
Name of the extension as used in the description. |
Methods
| Name | Description |
|---|---|
| Parse(JsonNode) |
Parses the JsonNodeExtension to OpenApiPrimaryErrorMessageExtension. |
| Write(IOpenApiWriter, OpenApiSpecVersion) |
Write out contents of custom extension |