Optional ReadonlyapiThe raw api information provided in. When looking for a fleshed out version of this data look at ModelType.getApiInfo
ReadonlydescriptionA helpful human-readable description that explains what the model is and what it is used for.
ReadonlydisplayA text used for displaying the name of the model in a UI.
ReadonlymodelValidators of the overall model (rather than properties)
ReadonlynamespaceThe name that this model exists within, such as an app. This is used to combine with the pluralName to create a unique name across a system that it is used in.
Recommended: If you are creating reusable libraries/packages for people, we recommend using the name of the package itself. Example: "@my-scoped-package/name"
If you are creating this model to be used locally, just use the "app" name that the model corresponds to. Example: "auth"
The namespace is also used in the auto-generation of RestInfo.endpoint. If you want to design the endpoint so that it looks/reads/flows better then consider overriding the endpoint yourself.
ReadonlypluralThe primary name for the model and instances of the model. This should be a name for multiple of the model instances.
ReadonlyprimaryThe name of the property that has the unique id for the model. Used to uniquely identify instances of this model vs other ones.
ReadonlypropertiesThe properties that make up the model.
ReadonlyschemaA zod schema for the model.
ReadonlysingularThe name for a model/instance where there is one of them.
Expressively defines metadata for a given model.