Skip to content

Should @useDependency on individual API versions catch version mismatch errors? #3919

Answered by timotheeguerin
grepory asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah so I think there is a few issues:

  1. The should fail when spreading a model not available in the version used. I think this is basically this issue #3648
  2. The error you see in the first playground link I think is a separate issue could file a bug for. I think the validation is wrongfully complaining here.

That being said I think you should be very careful about versioning libraries. Versioning spec is one thing but versioning libraries(with decorators) can lead to a very confusing understanding of how things get applied.
We started doing that for Azure libraries and due to the confusion have started moving away.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grepory
Comment options

Answer selected by grepory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants