InlineSchemaOptions class

Allows you to customize how inline schemas are handled or named

Constructors

InlineSchemaOptions({String? arrayItemSuffix, String? mapItemSuffix, bool skipSchemaReuse = true, bool refactorAllofInlineSchemas = true, bool resolveInlineEnums = true})
const
InlineSchemaOptions.fromMap(Map<String, dynamic> map)
Produces an InlineSchemaOptions that is easily consumable from the ConstantReader.

Properties

arrayItemSuffix String?
sets the array item suffix
final
hashCode int
The hash code for this object.
no setterinherited
mapItemSuffix String?
set the map item suffix
final
refactorAllofInlineSchemas bool
will restore the 6.x (or below) behaviour to refactor allOf inline schemas into $ref. (v7.0.0 will skip the refactoring of these allOf inline schemas by default)
final
resolveInlineEnums bool
Email address of the author in generated pubspec
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipSchemaReuse bool
special value to skip reusing inline schemas during refactoring
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
A convenience function that simplifies the output to the compiler.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited