-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
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
[jsonschema] Bug: error not returned from Encoder #63
Comments
smyrman
added a commit
to smyrman/rest-layer
that referenced
this issue
Dec 15, 2016
- Replaces encoder_test.go (encoding package) with example_test.go (jsonschema package). - Replaces remaining tests in jsonschema_test.go with (table-)tests testing the pulbic interface. The new tests are placed in <typeName>_test.go or all_test.go. - Solves Issue rs#63 (found by test change) where errors from validatorToJSONSchema and serializeField where never propagated.
smyrman
added a commit
to smyrman/rest-layer
that referenced
this issue
Dec 15, 2016
Testing: - Replaces encoder_test.go (encoding package) with example_test.go (jsonschema package). - Replaces remaining tests in jsonschema_test.go with tests that test the pulbic interface. The new tests are placed in {typeName}_test.go or all_test.go. - Remove go 1.6 testing support (no longer run by CI). Code: - Solves Issue rs#63 (found by test change) where errors from validatorToJSONSchema and serializeField where never propagated. - Encodes schema.Fields in alphabetical order to allow example test. - Order type methods to appear right below type definition.
smyrman
added a commit
to smyrman/rest-layer
that referenced
this issue
Dec 16, 2016
Testing: - Replaces encoder_test.go (encoding package) with example_test.go (jsonschema package). - Replaces remaining tests in jsonschema_test.go with tests that test the pulbic interface. The new tests are placed in {typeName}_test.go or all_test.go. - Remove go 1.6 testing support (no longer run by CI). Code: - Solves Issue rs#63 (found by test change) where errors from validatorToJSONSchema and serializeField where never propagated. - Encodes schema.Fields in alphabetical order to allow example test. - Order type methods to appear right below type definition.
rs
pushed a commit
that referenced
this issue
Dec 16, 2016
Testing: - Replaces encoder_test.go (encoding package) with example_test.go (jsonschema package). - Replaces remaining tests in jsonschema_test.go with tests that test the pulbic interface. The new tests are placed in {typeName}_test.go or all_test.go. - Remove go 1.6 testing support (no longer run by CI). Code: - Solves Issue #63 (found by test change) where errors from validatorToJSONSchema and serializeField where never propagated. - Encodes schema.Fields in alphabetical order to allow example test. - Order type methods to appear right below type definition.
Since #64 is merged, this issue can be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While donig some test-cleanup in the
jsonschema
package, I found a bug where errors in encoding a validator are never returned fromjsonschema.Encoder
.I found this bug while changing this test:
Into one that tests the public interface:
PS! The result is the same if
&schema.IP{}
is used asValidator
in the new test.I am trying to see if I can fix this together with my change.
The text was updated successfully, but these errors were encountered: