Should @useDependency on individual API versions catch version mismatch errors? #3919
-
I think my title is a little misleading, and I might update it, but the gist of this is that I don't understand versioning. :) In this first example -- Playground Link -- I have an unversioned API that depends on a dependency at In the next example -- Playground Link -- I've added useDependency annotations to individual API versions in a versioned API that depends on another versioned API. In this example, I've again made a model that depends on a model from the wrong version, and this time I don't get any error at all. This last Playground Link is just a combination of the previous two, but again illustrates the behaviors. I'm just a bit confused about what's supposed to be happening and when I should be seeing errors. Am I doing versioning wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yeah so I think there is a few issues:
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. |
Beta Was this translation helpful? Give feedback.
Yeah so I think there is a few issues:
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.