Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

varianttype and alternateBases and matename should use oneof construct in OpenAPI specs #278

Open
blankdots opened this issue Apr 24, 2019 · 4 comments

Comments

@blankdots
Copy link

Related to #273 and #277 (comment)

Seems like:

  • alternateBases or variantType cannot be used with mateName;
  • if a query specifies variantType=BND it seems like it is a looks mateName should not be present.

Or am i missing something?

@blankdots blankdots changed the title varianttype and alternateBases and matename hould use oneof construct in OpenAPI specs varianttype and alternateBases and matename should use oneof construct in OpenAPI specs Apr 24, 2019
@mbaudis
Copy link
Member

mbaudis commented Apr 24, 2019 via email

@blankdots
Copy link
Author

blankdots commented Apr 24, 2019

@mbaudis the API description leaves room for interpretation thus my confusion, maybe worth detailing this particular thing in a shape or form.
But just to be clear if one would specify mateName shouldn't variantType be assumed as BND by default, or are there any cases we are missing?

@mbaudis
Copy link
Member

mbaudis commented Apr 24, 2019

@blankdots You’re correct; but IMO a well-formed fusion query should specify BND, even if it is implicit.
I’m not sure how to go further about this - specification or documentation for query types - on a technical level; a “oneOf” construct should in principle apply to query prototypes, not single attributes. @sdelatorrep?

@blankdots
Copy link
Author

blankdots commented Apr 24, 2019

ok, open to any suggestion how to specify, oneof was a proposal.
Also for an implementation standpoint it would be another check that needs to be performed that when mateName is used with variantType to be sure that any service querying the API used the correct value: BND - and that is ok, just highlighting that this might be useful when clarifying in the API specs.

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

No branches or pull requests

2 participants