-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Deprecate Path Item Object ref field (#2635) #2656
Deprecate Path Item Object ref field (#2635) #2656
Conversation
The field has been deprecated in favor of using Reference Object in OAS 3.2.0 and forward. Signed-off-by: Vladimir Gorej <[email protected]>
Not really sure if my wording in deprecation message is ideal. I'm very open to any suggestions ;] |
Hmm. I think As to wording, I feel we should not "throw forward" to other versions of the spec, for two reasons:
so personally, I would prefer the wording to be self-contained as to the situation within the version of the spec the markdown file refers to. |
Yep, fully agree. I'll try to come up with self-contained wording deprecating just use-case of |
We've came up with 3 possible versions of deprecation message (thanks @frankkilcommins) 1.)
2.)
3.)
@MikeRalphson please let me know which one works best for you and I'll amend the PR. |
@MikeRalphson just pinging here, regarding my last comment. |
I've pushed one of the sentence that I thought is most appropriate. |
Can you add |
@karenetheridge sure, but I'm not sure it's possible at this time. As already stipulated here current JSON Schema doesn't properly validate what the spec is defining. We would first need to completely fix the schema before we can introduce |
Maybe this should be in a separate PR, but should this bit of the schema be changed?
|
Doesn't path-item always allow "reference"? At least that's what the wording on it seems to imply. Its been weird that some tooling are allowing openapi paths to be reference, for easier splitting into separate files, but this validation actually prevents this. Maybe I'm reading this wrong but the spec actually state that all paths should be able to be references? |
* Deprecate Path Item Object ref field (OAI#2635) The field has been deprecated in favor of using Reference Object in OAS 3.2.0 and forward. Signed-off-by: Vladimir Gorej <[email protected]> * Deprecate Path Item Object ref field specific usecases Refs OAI#2635 * fix change
* Deprecate Path Item Object ref field (OAI#2635) The field has been deprecated in favor of using Reference Object in OAS 3.2.0 and forward. Signed-off-by: Vladimir Gorej <[email protected]> * Deprecate Path Item Object ref field specific usecases Refs OAI#2635 * fix change
The field has been deprecated in favor of
using Reference Object in OAS 3.2.0 and forward.
Signed-off-by: Vladimir Gorej [email protected]