Fixed boolean/number bug in schema (#74)

This commit is contained in:
iko 2021-05-31 17:20:19 +03:00 committed by GitHub
parent 6e454bcf2a
commit df1f841721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -488,7 +488,7 @@ processSchema sch@(extract -> Schema {..}) = do
}
Just OpenApiNumber ->
bottom
{ forBoolean = top
{ forNumber = top
}
Just OpenApiInteger ->
bottom
@ -961,7 +961,7 @@ instance Issuable 'TypedSchemaLevel where
| NoMatchingCondition [SomeCondition]
-- ^ consumer declares that the value must satisfy a disjunction of some conditions, but producer's requirements couldn't be matched against any single one of them (TODO: split heuristic #71)
| NoContradiction
-- ^ consumer indicates that values of this type are now allowed, but the producer does not do so (currently we only check immediate contradictions, c.f. #70)
-- ^ producer indicates that values of this type are now allowed, but the consumer does not do so (currently we only check immediate contradictions, c.f. #70)
deriving stock (Eq, Ord, Show)
issueIsUnsupported _ = False

View File

@ -4,4 +4,4 @@ Left:
WithStatusCode 200:
ResponsePayload:
PayloadSchema:
OfType Boolean: NoContradiction
OfType Number: NoContradiction