OpenAPI.NET icon indicating copy to clipboard operation
OpenAPI.NET copied to clipboard

Question about the scope of CurrentKeys

Open peteraritchie opened this issue 3 years ago • 0 comments

I noticed that members of CurrentKeys seem to stay within the Paths object. I was wondering if there was any specific reason for this?

I ask because when a visitor visits things in the Components object it has no context in CurrentKeys (i.e. all members are null). I'm running into a situation where I cannot use CurrentKeys to differentiate a schema at the root of Components or a schema deeper down a branch. e.g. CurrentKeys is the same for both #/components/schemas/Order and #/components/parameters/status/schema so I must parse PathString.

peteraritchie avatar Jul 04 '21 02:07 peteraritchie