Click or drag to resize
Json.NET Schema

StringEnumGenerationProvider Class

 
Customizes JSchema generation for Enum to be a string value.
Inheritance Hierarchy
SystemObject
  Newtonsoft.Json.Schema.GenerationJSchemaGenerationProvider
    Newtonsoft.Json.Schema.GenerationStringEnumGenerationProvider

Namespace:  Newtonsoft.Json.Schema.Generation
Assembly:  Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax
C#
public class StringEnumGenerationProvider : JSchemaGenerationProvider

The StringEnumGenerationProvider type exposes the following members.

Constructors
  NameDescription
Public methodStringEnumGenerationProvider
Initializes a new instance of the StringEnumGenerationProvider class
Top
Properties
  NameDescription
Public propertyCamelCaseText
Gets or sets a value indicating whether the written enum text should be camel case.
Top
Methods
  NameDescription
Public methodCanGenerateSchema
Determines whether this instance can generate a JSchema for the specified object type.
(Overrides JSchemaGenerationProviderCanGenerateSchema(JSchemaTypeGenerationContext).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetSchema
Gets a JSchema for a Type.
(Overrides JSchemaGenerationProviderGetSchema(JSchemaTypeGenerationContext).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also