We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It should be straightforward to implement validation:
validate :: Schema -> Value -> Maybe ErrorMsg
Given that we should add tests for compliance with aeson's ToJSON instances:
aeson
ToJSON
testAeson :: forall a. (Arbitrary a, ToJSON a, ToSchema a) => Spec () testAeson = prop "toSchema is compliant with toJSON" $ \(x :: a) -> validate (toSchema (Proxy :: Proxy a)) (toJSON a) == Nothing
The text was updated successfully, but these errors were encountered:
Merge pull request #18 from GetShopTV/validate-#12
87906b0
JSON validation based on Swagger Schema
No branches or pull requests
It should be straightforward to implement validation:
Given that we should add tests for compliance with
aeson
'sToJSON
instances:The text was updated successfully, but these errors were encountered: