Interface IContentSchemaGenerator
- Namespace
- Biwen.QuickApi.Contents.Abstractions
- Assembly
- Biwen.QuickApi.Contents.dll
public interface IContentSchemaGenerator
- Extension Methods
-
Methods
GenerateSchema(Type)
JsonObject GenerateSchema(Type contentType)
Parameters
contentType
Type
Returns
- JsonObject
GenerateSchemaJson(Type, JsonSerializerOptions?)
string GenerateSchemaJson(Type contentType, JsonSerializerOptions? options = null)
Parameters
contentType
Type
options
JsonSerializerOptions
Returns
- string
GenerateSchemaJson<T>(JsonSerializerOptions?)
string GenerateSchemaJson<T>(JsonSerializerOptions? options = null) where T : IContent
Parameters
options
JsonSerializerOptions
Returns
- string
Type Parameters
T
GenerateSchema<T>()
JsonObject GenerateSchema<T>() where T : IContent
Returns
- JsonObject
Type Parameters
T