lutaml / lutaml-model

LutaML Model is the Ruby data modeler part of the LutaML data modeling suite. It supports creating serialization object models (XML, YAML, JSON, TOML) and mappings to and from them.
Other
2 stars 2 forks source link

Add group and choice options #71

Open HassanAkbar opened 1 month ago

HassanAkbar commented 1 month ago

XML type conditions

Originally posted by @ronaldtse in https://github.com/lutaml/lutaml-model/issues/9#issuecomment-2295898312

HassanAkbar commented 1 month ago

@ronaldtse I have a few questions regarding what to validate in the above options

For choice option

For group option

ronaldtse commented 1 month ago

For choice option

  • Should we raise an error if none of the option is provided from the choice group?

Yes, instead of raising it, add this requirement to the validate process.

  • Should we raise an error if more then one option is provided from the choice group?

Yes, instead of raising it, add this requirement to the validate process.

For group option

  • Should we raise an error if not all the options are selected from the group?

Yes, instead of raising it, add this requirement to the validate process.