File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,12 @@ validateJsonRepr
125
125
-> [DemotedPathSegment ]
126
126
-> JsonRepr schema
127
127
-> Validation ()
128
- validateJsonRepr sschema dpath jr = case jr of
128
+ validateJsonRepr sschema dpath = \ case
129
129
ReprText t -> case sschema of
130
130
SSchemaText scs -> validateConstraints dpath t scs
131
131
ReprNumber n -> case sschema of
132
132
SSchemaNumber scs -> validateConstraints dpath n scs
133
- ReprNull -> pure ()
133
+ ReprNull -> pure ()
134
134
ReprBoolean _ -> pure ()
135
135
ReprArray v -> case sschema of
136
136
SSchemaArray acs s -> do
@@ -156,8 +156,8 @@ validateJsonRepr sschema dpath jr = case jr of
156
156
where
157
157
validateUnion :: Sing us -> Union JsonRepr us -> Validation ()
158
158
validateUnion ss r = case (ss,r) of
159
- (SCons (s :: Sing su ) _, This v) -> validateJsonRepr s dpath v
160
- (SCons _ stl, That r') -> validateUnion stl r'
159
+ (SCons s _, This v) -> validateJsonRepr s dpath v
160
+ (SCons _ stl, That r') -> validateUnion stl r'
161
161
(SNil ,_) -> fail " Invalid union. Please report this as a bug"
162
162
163
163
parseAndValidateJson
You can’t perform that action at this time.
0 commit comments