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
  • !248

slapos_jio: Support list of elements expressed with oneOf

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Łukasz Nowak requested to merge luke/slapos.core:feature/oneof-listfield into master Sep 03, 2020
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

By following feature of JSON Schema Draft-06 render a structure like:

  "element": {
    "oneOf": [
      {
        "const": "value1",
        "title": "Description1"
      },
      {
        "const": "value2",
        "title": "Description2"
      }
    ]
  }

To:

  <select size="1">
    <option value=""></option>
    <option value="value1">Description1</option>
    <option value="value2">Description2</option>
  </select>
Edited Sep 24, 2020 by Łukasz Nowak
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/oneof-listfield
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7