Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/jsonschema: non-string regular expressions should error
The error from `Value.String` was being ignored. Use `strValue` instead, which gives an error if the value is not a string. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: If599225bd9f3e2f5db6db3153dd0a40c01393504 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201124 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information