You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to have something like TypedSchema approach for automating loading from json maps to GrowthBook structs.
So from one description we could:
generate defstruct field list with defaults
generate type
generate from_json function that will check field types and constraints
Example:
defmodule GrowthBook.Feature do
use GrowthBook.TypedSchema
typed_schema [
id: integer(required: true),
rules: list(GrowthBook.Feature, default: [])
]
end
The text was updated successfully, but these errors were encountered:
Overview
Would be nice to have something like TypedSchema approach for automating loading from json maps to GrowthBook structs.
So from one description we could:
defstruct
field list with defaultstype
from_json
function that will check field types and constraintsExample:
The text was updated successfully, but these errors were encountered: