View Source OpenApiSpex.Test.Assertions (open_api_spex v3.21.2)

Defines helpers for testing API responses and examples against API spec schemas.

Summary

Functions

Asserts that value conforms to the schema with title schema_title in api_spec.

Functions

Link to this function

assert_schema(value, schema_title, api_spec)

View Source
This function is deprecated. Use OpenApiSpex.TestAssertions.assert_schema/3 instead.
@spec assert_schema(map(), String.t(), OpenApiSpex.OpenApi.t()) :: map() | no_return()

Asserts that value conforms to the schema with title schema_title in api_spec.