Skip to content

ClientGeneratorBaseSettings

Rico Suter edited this page Jun 6, 2019 · 18 revisions

Common settings for all client code generators.

Properties

  • ClassName
  • GenerateDtoTypes
  • GenerateClientInterfaces
  • GenerateClientClasses
  • OperationNameGenerator
    • In the CLI config, there are some predefined modes:
    • OperationGenerationMode: Defines how to generate operations based on the given operation IDs MultipleClientsFromPathSegments to generate one client class per controller.
      • MultipleClientsFromOperationId (default): Multiple clients from the Swagger operation ID in the form {controller}_{action}
      • MultipleClientsFromPathSegments: Multiple client classes are generated. The method names in the client classes from path segments (operation name = nth segment, client name = nth - 1 segment).
      • SingleClientFromOperationId: The method names in the client class are generated from the given Swagger operation ID
  • GenerateOptionalParameters
  • ParameterNameGenerator
  • ExcludedParameterNames
  • WrapResponses
  • WrapResponseMethods
  • GenerateResponseClasses
  • ResponseClass

Base settings for: