Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 38
    • Merge requests 38
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slapos.core
  • Merge requests
  • !375

Support schemas more accurately based on serialisation

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Rafael Monnerat requested to merge rafael/slapos.core:load-schema-work into master Apr 11, 2022
  • Overview 6
  • Commits 6
  • Pipelines 0
  • Changes 25

Since, neither the slapos parameters and neither the Parameter Form can support the full scope of JSON Schema, we introduce a more restricted meta schemas.

Few examples:

  • whenever you use XML serialisation, you cannot use "object" or "array", since all values are flat (as string).
  • complex cases like "Any of" or "One Of", with complex sub-objects are unsupported by the parameter form. This isn't a problem for the instance itself, but since the form don't support it, it can lead to a bugged and unpredictable outcome.

The schemas might evolve (in case of json-in-xml), as long as the parameter editor evolves. Unsupported schemas just tend to failover to a text area.

/cc @romain @tomo @vpelletier

Edited Apr 14, 2022 by Rafael Monnerat
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: load-schema-work
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7