Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

marker interface for oneOf? #78

Closed
Closed

Description

@hauner

Is it worth adding a marker interface to the items of oneOf that's used as the type instead of Object?

moved anyOf to #90, one step at a time

Activity

  1. davidjohnstonverint commented on Apr 8, 2022

    @davidjohnstonverint

    Yes please :D

  2. added 13 commits that reference this issue on Apr 9, 2022
  3. added this to the 2022.3 milestone on Apr 9, 2022
  4. changed the title [-]marker interface for oneOf/anyOf ?[/-] [+]marker interface for oneOf?[/+] on Apr 9, 2022
  5. davidjohnstonverint commented on Apr 11, 2022

    @davidjohnstonverint

    Will the fields that reference the marker interface be given the @Valid annotation?

  6. added 2 commits that reference this issue on Apr 11, 2022
  7. hauner commented on Apr 11, 2022

    @hauner
    MemberAuthor

    of course ;-)

  8. hauner commented on Apr 12, 2022

    @hauner
    MemberAuthor

    you can try it with

    io.openapiprocessor:openapi-processor-spring:2022.3-SNAPSHOT by enabling one-of-interface: true in the options.

    openapi-processor-mapping: v2
    
    options:
      bean-validation: true
      one-of-interface: true
    

    with the gradle plugin it should find the snapshot automatically....

  9. davidjohnstonverint commented on Apr 12, 2022

    @davidjohnstonverint

    Works a treat, thank you.

  10. hauner commented on Apr 12, 2022

    @hauner
    MemberAuthor

    nice :-)

  11. hauner commented on Apr 19, 2022

    @hauner
    MemberAuthor

    released in io.openapiprocessor:openapi-processor-spring:2022.3

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions