SchemaGeneratorOptions class
Configuration used by SchemaGenerator.
Constructors
-
SchemaGeneratorOptions({String? rootClassName, String? inferredRootClass, bool preferCamelCase = true, bool emitDocumentation = true, String? header, String? sourcePath, bool singleFileOutput = false, Uri? baseUri, SchemaDocumentLoader? documentLoader, bool allowNetworkRefs = false, List<
String> ? allowedNetworkHosts, List<String> ? allowedFilePaths, int maxReferenceDepth = 100, String? networkCachePath, void onWarning(String message)?, bool enableFormatHints = false, bool enableFormatAssertions = false, bool emitValidationHelpers = false, bool emitReadmeSnippets = false, bool enableContentKeywords = false, bool enableContentValidation = false, bool generateHelpers = false, bool emitUsageDocs = false, SchemaDialect? defaultDialect = SchemaDialect.latest, Map<String, SchemaDialect> supportedDialects = SchemaDialect.defaultDialectRegistry}) -
const
Properties
-
allowedFilePaths
→ List<
String> ? -
final
-
allowedNetworkHosts
→ List<
String> ? -
final
- allowNetworkRefs → bool
-
final
- baseUri → Uri?
-
final
- defaultDialect → SchemaDialect?
-
final
- documentLoader → SchemaDocumentLoader?
-
final
- effectiveHeader → String
-
no setter
- effectiveRootClassName → String
-
no setter
- emitDocumentation → bool
-
final
- emitReadmeSnippets → bool
-
final
- emitUsageDocs → bool
-
final
- emitValidationHelpers → bool
-
final
- enableContentKeywords → bool
-
final
- enableContentValidation → bool
-
final
- enableFormatAssertions → bool
-
final
- enableFormatHints → bool
-
final
- generateHelpers → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → String?
-
final
- inferredRootClass → String?
-
final
- maxReferenceDepth → int
-
final
- networkCachePath → String?
-
final
- onWarning → void Function(String message)?
-
final
- preferCamelCase → bool
-
final
- rootClassName → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- singleFileOutput → bool
-
final
- sourcePath → String?
-
final
-
supportedDialects
→ Map<
String, SchemaDialect> -
final
Methods
-
copyWith(
{String? inferredRootClass, String? sourcePath, bool? singleFileOutput, Uri? baseUri, SchemaDocumentLoader? documentLoader, bool? allowNetworkRefs, List< String> ? allowedNetworkHosts, List<String> ? allowedFilePaths, int? maxReferenceDepth, String? networkCachePath, void onWarning(String message)?, bool? enableFormatHints, bool? enableFormatAssertions, bool? emitValidationHelpers, bool? emitReadmeSnippets, bool? enableContentKeywords, bool? enableContentValidation, bool? generateHelpers, bool? emitUsageDocs, SchemaDialect? defaultDialect, Map<String, SchemaDialect> ? supportedDialects}) → SchemaGeneratorOptions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited