Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata_collection of gromet_FN needs polymorphism #40

Open
kwalcock opened this issue Nov 14, 2022 · 0 comments
Open

metadata_collection of gromet_FN needs polymorphism #40

kwalcock opened this issue Nov 14, 2022 · 0 comments

Comments

@kwalcock
Copy link
Contributor

It looks like

        metadata_collection:
          description: |
            Table (array) of lists (arrays) of metadata,
            where each list in the Table-array represents the collection
            of metadata associated with a GroMEt object.
          type: array  # The Table of metadata_collection(s) (lists)
          items:
            type: array  # Collection (list) of metadata associated with a particular GroMEt object.
            items:
              $ref: "#/components/schemas/Metadata"

means that anything that includes an

      allOf:
        - $ref: '#/components/schemas/Metadata'

is allowed. In order for code generation to work, some things need to be added, including a discriminator and probably oneOf. See also https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant