Skip to content

GitLab

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

Merged
Created Jun 05, 2025 by Xavier Thompson@xavier_thompsonOwner

slapconfiguration: Support unstringifying integers

  • Overview 4
  • Commits 5
  • Changes 2

Support unstringifying integers

When the instance receives xml-stringified parameters because of xml serialisation and uses slapconfiguration:jsonschema recipe, it can unstringify stringified integers that are typed as integers in the json schema.

This is useful for migrating xml instances to jsonschema recipe, and to further ease migration to json-in-xml serialisation. Integers are in practice the only type of parameters in xml instances, other than strings.

Friendlier usage

Raise informative error when slapconfiguration:jsonschema receives a software-type that does not have a corresponding entry in software.cfg.json.

Bug fix

Remove root_instance_short_title from the parameter dict to avoid spuriously failing to validate jsonschema that forbid additional (unexpected) parameters.

Cleanup

Refactor recipe and tests.

See !1638 (merged) and !1829 (merged) for previous history on slapconfiguration:jsonschema

Edited Jun 16, 2025 by Xavier Thompson
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/slapconfiguration-jsonschema-stringified-integer-compatibility
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7