oneOf keyword wrongly used in schema
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-net-config |
Fix Released
|
Undecided
|
Michal Skalski |
Bug Description
Looking at the schema I see two problems with usage of oneOf keyword:
1) When 'oneOf' keyword is used data must be valid against exactly one of the given subschemas [1]. There are examples when both of subschemas refer to param defintion [2] which means that data is valid against more than one schema from 'oneOf'. In that case 'anyOf' should be used [3].
2) There are occurence of 'oneof' keyword (all letters lowercase) [4] which does not enforce anything.
[1] https:/
[2] https:/
[3] https:/
[4] https:/
Changed in os-net-config: | |
assignee: | nobody → Michal Skalski (mskalski) |
Fix proposed to branch: master /review. opendev. org/681447
Review: https:/