nova-json-schema-field icon indicating copy to clipboard operation
nova-json-schema-field copied to clipboard

Support array of objects?

Open olragon opened this issue 5 years ago • 1 comments

Blank field display when I used nova-json-schema-field with schema Array of objects

public function fields() {
    return [
        NovaJsonSchemaField::make('Options', $this->optionsSchema())
              ->listClass('list-reset')
    ]
}

public function optionsSchema() {
        return [
            'type' => 'array',
            'items' => [
                'type' => 'object',
                'required' => ['name'],
                'properties' => [
                    'name' => [
                        'type' => 'string'
                    ]
                ]
            ]
        ];
    }

olragon avatar Sep 20 '18 08:09 olragon

Any update on this? Nice field btw.

fkraefft avatar Nov 20 '18 23:11 fkraefft