smart_city_test v0.9.1 SmartCity.TestDataGenerator.Payload View Source

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
create_payload(atom()) :: map()

Generates payload for requested schema type.

Link to this function

get_schema(schema_type)

View Source
get_schema(atom()) :: {:ok, map()} | :error

Returns a map containing schema for the requested schema type.