Skip to content

Partial re-implementation of the Parameter editor

The re-implementation here is based on make 2 points:

  • Replace expandSchema to use ref-parser library
  • Replace tv4 by cfworker json schema (validator)

The selection of the validator to replace tv4, consider 2 criteria:

  • Don't use eval or anything that requires changes on CSP (like unsafe-eval)
  • Has the least amount of errors as possible (more important then speed)
  • Is ranked on well known on benchmark tests

See: https://github.com/ebdrup/json-schema-benchmark

This refactoring includes a large set of tests and fixes for parameter field (ie: required)

This MR replaces and extends https://lab.nexedi.com/nexedi/slapos.core/merge_requests/440

Edited by Rafael Monnerat

Merge request reports