Class: Lutaml::Model::UnionSchemaUnsupportedError
- Defined in:
- lib/lutaml/model/error/union_schema_unsupported_error.rb
Instance Method Summary collapse
-
#initialize(attribute, format) ⇒ UnionSchemaUnsupportedError
constructor
A new instance of UnionSchemaUnsupportedError.
Constructor Details
#initialize(attribute, format) ⇒ UnionSchemaUnsupportedError
Returns a new instance of UnionSchemaUnsupportedError.
4 5 6 7 8 |
# File 'lib/lutaml/model/error/union_schema_unsupported_error.rb', line 4 def initialize(attribute, format) super("Union-typed attribute `#{attribute}` cannot be exported to " \ "#{format}; union types are only representable in JSON Schema " \ "(anyOf).") end |