You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Select = Maybe [(ScalarId, Maybe [T.Text])]
data Query r g = Query
{ resourceId :: r
, select :: Select
, filter :: Maybe Filter
, group :: Maybe g
, equateBaselines :: Bool
} deriving (Generic, Serialize)
swagger editor doesn't like to have an array in "items" as according to the spec, items must contain objects only. This is the message I got: Structural error at components.schemas.AggregateMRQuery.properties.select.items.items should be object
I am ready to prepare a PR to fix that but would like some guidance. Seems like tuples in general are not a good fit for openapi specs so what should the API do ? should it error out when dealing with tuples ? or throw a warning ? I wish the API would tell me when it generates possibly invalid spec instead of discovering it via a spec validator.
The text was updated successfully, but these errors were encountered:
Could you check whether schema is accepted (and validation works correctly both in negative and positive scenarios) if to replace problematic items with prefixItems?
If yes I believe one needs to bring these lines in sync with JSON Schema spec (note that there is inference between items, prefixItems, unusedItems). Though additional questions is which version of OpenAPI this library targets.
I have openapi generate
for the types
swagger editor doesn't like to have an array in "items" as according to the spec, items must contain objects only. This is the message I got:
Structural error at components.schemas.AggregateMRQuery.properties.select.items.items should be object
I am ready to prepare a PR to fix that but would like some guidance. Seems like tuples in general are not a good fit for openapi specs so what should the API do ? should it error out when dealing with tuples ? or throw a warning ? I wish the API would tell me when it generates possibly invalid spec instead of discovering it via a spec validator.
The text was updated successfully, but these errors were encountered: