prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

JSON Forms data results can be arrays in addition to key/value objects #197

Closed taylorreece closed 6 months ago

taylorreece commented 6 months ago

A JSON form can yield an object (Record<string, unknown>) or it can return an array if the schema has a top-level array declared (like this example https://prismatic.io/docs/jsonforms/playground/?key=basic-array).

Our TypeScript should allow for both.