Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slapos.core
  • Merge requests
  • !375

Merged
Created Apr 11, 2022 by Rafael Monnerat@rafael👻Owner

Support schemas more accurately based on serialisation

  • Overview 6
  • Commits 6
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: load-schema-work
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7