View Source SmartCity.TestDataGenerator.Payload (smart_city_test v3.0.0)

Module that generates payloads based on schema type.

Link to this section Summary

Functions

Generates payload for requested schema type.

Returns a map containing schema for the requested schema type.

Link to this section Functions

Link to this function

create_payload(schema_type)

View Source
@spec create_payload(atom()) :: map()

Generates payload for requested schema type.

@spec get_schema(atom()) :: {:ok, map()} | :error

Returns a map containing schema for the requested schema type.