autocomplete-tools icon indicating copy to clipboard operation
autocomplete-tools copied to clipboard

[tools/version]: create a new version from a spec already populated by generators

Open fedeci opened this issue 2 years ago • 0 comments

Currently, because we are using JSON.parse to print the spec, generators and structures that are not part of JSON do not get printed correctly.

Errors found when transforming fig spec: Before:

const generator =  {
  script: 'foo',
  postProcess: () => {}
}

// ... spec here
args: {
  generators: generator
}

After:

// ... spec here
args: {
  generators: { script: 'foo' }
}

const generator =  {
  custom: () => {}
}

// ... spec here
args: {
  generators: generator
}

After:

// ... spec here
args: {
}

fedeci avatar Apr 04 '22 09:04 fedeci