Skip to content

Normalize gathered values if the "gathering" property is defined in "properties" or "patternProperties". #1

@amobiz

Description

@amobiz

For example:
with this schema:

{
  properties: {
    src: {},
    dest: {},
    options: {
      properties: {
        externals: {
          alias: ['external'],
          type: 'array'
        }
      }
    },
  },
  gathering: 'options'
}

normalize this:

{
  src: 'app',
  dest: 'dist',
  external: 'angular'
}

to:

{
  src: 'app',
  dest: 'dist',
  options: {
    externals: ['angular']
  }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions