Update swagger and proto-wire#232
Update swagger and proto-wire#232JonathanLorimer wants to merge 4 commits intoawakesecurity:masterfrom
Conversation
| "{\"properties\":{\"wrapper\":{\"format\":\"int64\",\"maximum\":9223372036854775807,\"minimum\":-9223372036854775808,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| , expectSchema @TestProtoWrappers.TestUInt64Value | ||
| "{\"properties\":{\"wrapper\":{\"maximum\":18446744073709551615,\"format\":\"UInt64Value\",\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| "{\"properties\":{\"wrapper\":{\"maximum\":18446744073709551615,\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| "{\"properties\":{\"wrapper\":{\"format\":\"int64\",\"maximum\":18446744073709551615,\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| , expectSchema @TestProtoWrappers.TestInt32Value | ||
| "{\"properties\":{\"wrapper\":{\"maximum\":2147483647,\"format\":\"Int32Value\",\"minimum\":-2147483648,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| "{\"properties\":{\"wrapper\":{\"maximum\":2147483647,\"format\":\"int32\",\"minimum\":-2147483648,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| "{\"properties\":{\"wrapper\":{\"format\":\"int32\",\"maximum\":2147483647,\"minimum\":-2147483648,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| , expectSchema @TestProtoWrappers.TestUInt32Value | ||
| "{\"properties\":{\"wrapper\":{\"maximum\":4294967295,\"format\":\"UInt32Value\",\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| "{\"properties\":{\"wrapper\":{\"maximum\":4294967295,\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"}" | ||
| "{\"properties\":{\"wrapper\":{\"format\":\"int32\",\"maximum\":4294967295,\"minimum\":0,\"type\":\"integer\"}},\"type\":\"object\"}" |
There was a problem hiding this comment.
New swagger seems to sort keys alphabetically now.
| instance Arbitrary TS.ShortText where | ||
| arbitrary = fmap TS.fromText arbitrary | ||
| shrink = map TS.fromText . shrink . TS.toText | ||
|
|
There was a problem hiding this comment.
Arbitrary instance for ShortText already provided by quickcheck-instances, this is the reason I increased the lower bound on that dep.
proto3-suite.cabal
Outdated
| if flag(large-records) | ||
| -- large-records support uses newer Dhall APIs. So we need at least 1.34. | ||
| build-depends: dhall >=1.34 && < 1.39, | ||
| build-depends: dhall >=1.34 && < 1.41.2, |
There was a problem hiding this comment.
swagger2 >= 2.8 requires aeson 2, this conflicted with dhall <1.39 which requires pre-2 aeson. Bumped the upper bound to allow the solver to grab aeson 2.
| packages: ./*.cabal | ||
| source-repository-package | ||
| type: git | ||
| location: https://github.com/awakesecurity/proto3-wire | ||
| tag: 8096a1e19431af603655e5c1f2488b5db907836c |
There was a problem hiding this comment.
Stack was already using a commit pin for proto3-wire, added one for cabal. Also updated the pin in stack (this provides a Data instance for FieldNumber)
|
@riz0id Could I get a review when you have a moment? |
ixmatus
left a comment
There was a problem hiding this comment.
@JonathanLorimer thanks for the PR. Sorry it took so long to get around to reviewing it.
|
@JonathanLorimer it looks like there's a CI failure: |
This update makes proto3-suite work as part of haskellPackages in unstable nixpkgs.