luthorBuilder function

Builder luthorBuilder(
  1. BuilderOptions options
)

Creates the luthor builder.

The unknown_keys option sets how generated schemas handle unknown keys when a model's @Luthor(unknownKeys: ...) does not: strip, passthrough or strict. Throws an ArgumentError for any other value or option.

Implementation

Builder luthorBuilder(BuilderOptions options) {
  return SharedPartBuilder([
    LuthorGenerator(unknownKeys: _readUnknownKeys(options.config)),
  ], 'luthor');
}