Replies: 14 comments 23 replies
-
you have to implement UrlLoader as shown in https://github.com/santhosh-tekuri/jsonschema/blob/boon/example_http_test.go |
Beta Was this translation helpful? Give feedback.
-
annotations are always extracted. so you no longer need |
Beta Was this translation helpful? Give feedback.
-
I missed that field. added in v6.0.1 |
Beta Was this translation helpful? Give feedback.
-
I misspelled the field name as |
Beta Was this translation helpful? Give feedback.
-
it is now |
Beta Was this translation helpful? Give feedback.
-
sure. it will be great help for me |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response so far, and for the quick mitigation! This helped a great deal. I also ran into |
Beta Was this translation helpful? Give feedback.
-
NOTE: second argument to |
Beta Was this translation helpful? Give feedback.
-
Further to the above comment "second argument to compiler.AddResource in v5 is io.Reader where as in v6 is json object" . The docs say:
However I don't think this is all that clear, what is a "valid json value"? This is particularly important because the use of This caused an unexpected runtime issue for me (caught by tests) when upgrading from V5 (not sure if this is intentional or a bug). For example the following works in V5 (playground:
With v6 it compiles OK, but then panics (playground) when run. To fix this it appears you need to use Thanks very much for all of your work on this! |
Beta Was this translation helpful? Give feedback.
-
I also have some questions about the migration. I found several things our old code was using that seem to have been removed or changed significantly:
|
Beta Was this translation helpful? Give feedback.
-
yes. it is now array which actually contains the instaceLocation splitter by |
Beta Was this translation helpful? Give feedback.
-
use the following: import "golang.org/x/text/message"
var defaultPrinter = message.NewPrinter(language.English)
message := verr.ErrorKind.LocalizedString(defaultPrinter) |
Beta Was this translation helpful? Give feedback.
-
Okay I updated everything using your advice: https://github.com/keboola/keboola-as-code/pull/2369/files But it seems there is still something wrong. Panic details
|
Beta Was this translation helpful? Give feedback.
-
What is the v6 equivalent of jsonschema.CompileString? I want to embed my JSON schema using: //go:embed settingsFileSchema.json
var settingsFileSchema string |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried migrating a project of ours from v5 to v6 and can't figure out some of the API changes. Is there a migration guide somewhere? If yes, it would be great to have it linked in the v6.0.0 release notes.
httploader
no longer there, is there anything to do to resolve URLs from $ref?Once I figured these out, I guess I'll run into more questions.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions