Skip to content

Instantly share code, notes, and snippets.

@preaction
Created June 25, 2020 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save preaction/edcd513769cb61a1e08637d881626f1b to your computer and use it in GitHub Desktop.
Save preaction/edcd513769cb61a1e08637d881626f1b to your computer and use it in GitHub Desktop.
my $schema = $app->yancy->schema;
for my $key ( keys %$schema ) {
my $props = $schema->{ $key }{ properties };
$schema->{ $key }{ 'x-list-columns' } = [ grep { $props->{$_}{format} ne 'textarea' } keys %$props ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment