Class: Lutaml::Model::UnionSchemaUnsupportedError

Inherits:
Error
  • Object
show all
Defined in:
lib/lutaml/model/error/union_schema_unsupported_error.rb

Instance Method Summary collapse

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