@diagonal-hq/cli 0.41.1 → 0.41.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -840,6 +840,8 @@ Fixtures are sample data for previews. They are not tests, and they are never se
840
840
 
841
841
  A resource is a folder of `resources/`. The folder name is the slug of a resource without a `slug` option, and it gives the name in `Resources`.
842
842
 
843
+ A list field can omit its item schema: `field.list({ uid: '...', label: 'Values' })`. It accepts a list of mixed values, uses the raw JSON editor, and has the record type `unknown[]`. An empty `settings.schema: []` is normalized to an absent schema. A dictionary field still requires `settings.schema`.
844
+
843
845
  | Path | Content |
844
846
  | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
845
847
  | `resources/<folder>/resource.ts` | `export default defineResource<'<folder>'>({...})`: the settings of the resource |