Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISchemaPayloadGeneratorOptions

Hierarchy

  • ISchemaPayloadGeneratorOptions

Index

Properties

Optional combinations

combinations: object

Control and limit the way value combinations are generated

Type declaration

  • Optional arrays?: object
    • Optional combinationGenerator?: function

      Custom function to generate array combinations

    • Optional maxCombinations?: number

      Simply limit the combination number

  • Optional objects?: object
    • Optional maxObjectPayloadCombinations?: number

      Simply limit the total combinations object may have

    • Optional maxPropertiesCombinations?: number

      Simply limit the combination number for each property

    • Optional minimalPayloadCombinationGenerator?: function

      Custom function to generate object minial payloads combinations

    • Optional optionalPayloadCombinationsGenerator?: function

Optional customFieldProcessors

Functions to process schema fields in custom ways

Optional customTypeProcessors

customTypeProcessors: object

Functions to generate values for given types in custom ways

Type declaration

  • [type: string]: function
      • (fieldSchema: JSONSchema6): Promise<any[]>
      • Parameters

        • fieldSchema: JSONSchema6

        Returns Promise<any[]>

Optional payloadKeyTransform

payloadKeyTransform: function

Function to transform schema property keys to payload keys (e.g. tranform to camelCase)

Type declaration

    • (key: string): string
    • Parameters

      • key: string

      Returns string

Optional silent

silent: boolean

Suppress logging

default

true

Generated using TypeDoc