Skip to content
Documentation

CustomSchemaNameAttribute Class

Overrides the schema name used for a type in the generated OpenAPI specification.

public sealed class CustomSchemaNameAttribute : System.Attribute

Inheritance System.Object 🡒 System.Attribute 🡒 CustomSchemaNameAttribute

By default, schema names are derived from the type name (with the leading I stripped from interfaces). Apply this attribute to a class, struct or enum to specify an explicit name.

CustomSchemaNameAttribute(string) Constructor

Section titled “CustomSchemaNameAttribute(string) Constructor”

Initializes a new instance of CustomSchemaNameAttribute with the specified schema name.

public CustomSchemaNameAttribute(string name);

name System.String

The custom name to use for this type in the OpenAPI schema definitions.

Gets the custom schema name.

public string Name { get; }

System.String

© 2026 Volue.Version v0.6.38017 November 2026