A renamed field is a compiler error.
Write the typed code of your domain again after each deployment. A field that the schema renames or retypes then fails your build, not a call at run time.
| From your schema | The CLI writes |
|---|---|
| Types | A type for each entity, key and field. |
| Values | A name for each value that a field allows. |
| Change sets | The change sets of each layer. |
| Search | Conditions and sorts for a search. |
| Atoms | Atoms with typed inputs and answers. |
| Clients | A client for each entity. |
Typed from your schema
The code above is part of what the command writes for the schema of one setting.
key := configuration.SettingKey{
Name: "export.batch",
}
support := &apiv1.ScopeValue{
Scope: "team", Value: "support",
}
changes := &configuration.Changes{}
changes.Setting(key, support).
ExpectLimit(200).
SetLimit(500).
SetMode(configuration.SettingModeShadow)
client := configurationclient.Of(domain)
answer, err := client.Submit(ctx, changes)
Your code, on the typed SDK
One change of one setting, for the support team. It expects the limit that it read: of two runs that expect one value and change it, one publishes.