data</span><span class='rparen'>)</span>
  <span class='comment'># Go through the list of oneOf items and attempt to identify the appropriate one.
</span>  <span class='comment'># Note:
</span>  <span class='comment'># - We do not attempt to check whether exactly one item matches.
</span>  <span class='comment'># - No advanced validation of types in some cases (e.g. &quot;x: { type: string }&quot; will happily match { x: 123 })
</span>  <span class='comment'>#   due to the way the deserialization is made in