« Previous | Next » 

Revision fab57b5a

IDfab57b5a180640b50f577f54312a6a1bb2dae52d
Parent 98d2fdaf
Child 6d7c03d8

Added by Bastian Waidelich about 7 years ago

[BUGFIX] Schema validation: Accept interfaces for format "class-name"

This change adjusts the ``SchemaValidator`` to accept strings referring
interfaces even if format "class-name" is required.

Background:

Currently if a string is expected to have the format "class-name", like::

{ type: string, format: class-name }

in a schema validation, only actual class names are accepted. To match
interfaces the "interface-name" format can be used.

In Flow we often use interface names in Objects.yaml in order to keep
things decoupled and flexible.
Because it's not possible to specify multiple supported formats, this
relaxes this restriction.

Change-Id: I5733ba52ea812f0598a14bc9e40aea32eea4e909
Releases: master, 2.3, 2.2

  • added
  • modified
  • copied
  • renamed
  • deleted