You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding uuid gem into my project, I've run into an issue with json-schema builtin UUID class.
Both uuid gem and json-scheme uri/uuid file declare class with the same name - UUID. Uuid gem being included after json-schema gem overrides initialize method with one without any arguments - https://github.com/assaf/uuid/blob/master/lib/uuid.rb#L249
Thanks - I added a namespace around this UUID class to avoid any further clobbering. As for the StandardError rescue, I left that open to catch different types of error messages thrown by different JSON backends - however, that does seem to be a little bit of an overkill, so I'll look at a better way to do it.
After adding uuid gem into my project, I've run into an issue with json-schema builtin UUID class.
Both uuid gem and json-scheme uri/uuid file declare class with the same name - UUID. Uuid gem being included after json-schema gem overrides
initialize
method with one without any arguments - https://github.com/assaf/uuid/blob/master/lib/uuid.rb#L249So running
Validator.validate!
anArgumentError
occures at https://github.com/hoxworth/json-schema/blob/master/lib/json-schema/uri/uuid.rb#L80There may be workaround by including uuidtools gem, however I think json-schema gem should use a namespace for UUID class.
The text was updated successfully, but these errors were encountered: