Skip to content

Track linkml/linkml#3662: *OrSubtype enums omit the concrete base class as a variant #110

Description

@kervel

Tracks linkml/linkml#3662 — *OrSubtype enums omit the concrete base class as a variant.

Effect on this crate

./regen.sh --check reports drift because the committed linkml_meta predates this PR. Once
it lands, regenerating adds the base class as a variant of its own subtype enum:

  • ExtensionOrSubtype::Extension
  • EnumExpressionOrSubtype::EnumExpression

together with the matching From, PyO3 FromPyObject/IntoPyObject, from_pair_*,
extract_key, impl_stub_type! arms and the poly.rs trait dispatch arms.

So today a plain Extension (as opposed to an Annotation) has no variant to deserialize
into, and the same for a bare EnumExpression.

Done when

The PR is merged and linkml_meta has been regenerated here. The regeneration itself is
gated by #109.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions