Bazaar.Schemas.Acp.ProductFeed (Bazaar v0.3.0)

Copy Markdown View Source

OpenAI product feed schema.

Based on the OpenAI developer docs product feed spec (developers.openai.com/commerce/specs/feed/). Not part of the open ACP standard, so we express it as a native Ecto embedded schema rather than generating from JSON.

Summary

Functions

Creates a changeset for validating and casting params.

Returns the description for a field, if available.

Creates a new changeset from params.

Functions

changeset(struct \\ %__MODULE__{}, params)

Creates a changeset for validating and casting params.

field_description(field)

Returns the description for a field, if available.

new(params \\ %{})

Creates a new changeset from params.