AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Requesting documentation on the <OpenApiReference /> element

Open kevdev424 opened this issue 5 years ago • 12 comments

[EDIT by guardrex to add the metadata]

I see a reference to <OpenApiReference /> in this document https://docs.microsoft.com/en-us/aspnet/core/web-api/microsoft.dotnet-openapi?view=aspnetcore-3.0#add but there's no real specifics as to what the settings are for it. I see ClassName OutputPath SourceUri and Options and least as sub elements but I'm not seeing any description for them, like what the full set of options are.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

kevdev424 avatar Nov 27 '19 20:11 kevdev424

Hello @kthayer424 It's best if you open issues from the This Page feedback button/form at the bottom of the topic. It automatically pings the author. I'll add the metadata to your opening remark.

guardrex avatar Nov 27 '19 20:11 guardrex

@bradygaster or @dougbu, do either of you have any info on this?

scottaddie avatar Dec 11 '19 22:12 scottaddie

@scottaddie and @kthayer424 @(OpenApiReference) items are part of the infrastructure used in Visual Studio 2019's Service References feature (part of Connected Services) and the dotnet openapi tool described at https://docs.microsoft.com/en-us/aspnet/core/web-api/microsoft.dotnet-openapi?view=aspnetcore-3.1

While it is possible to manually add @(OpenApiReference) items and some configuration properties to your projects, we have not yet documented this infrastructure. If I remember correctly, #8462 is the (long-standing, sorry) issue about providing such documentation.

I do not personally have time to do this work and am heading off soon for end-of-year vacation. But that doesn't mean we're satisfied with this gap.

Over to you @bradygaster

dougbu avatar Dec 12 '19 06:12 dougbu

Has there been any update on this?

SimonCull avatar Aug 03 '20 10:08 SimonCull

We've not made any progress on this doc update yet but we have been investing in other areas where OAS is valuable to customers (and to us) so this is getting picked up and prioritized more efficiently now. I'll work with the team to escalate the attention we're giving this. Apologies in advance.

bradygaster avatar Aug 03 '20 17:08 bradygaster

any updates? I am pushing to adopt this, but documentation would be much appreciated 👍 awesome feature by the way.

jkone27 avatar Aug 31 '20 09:08 jkone27

Hopefully my blog post that I have published today goes some way to filling the documentation gap https://stevetalkscode.co.uk/openapireference-commands

If an official Microsoft Docs area is started, happy to contribute the content from the blog post to it

stevetalkscode avatar Mar 15 '21 06:03 stevetalkscode

This is excellent, @stevetalkscode. I'll review it in more detail and think about how it could be included, as I think it'd be valuable at first glance. Curious if @scottaddie has any thoughts on this, or if @dougbu has thoughts. I'd imagine this doc is where we'd want to mix it in.

https://docs.microsoft.com/en-us/aspnet/core/web-api/microsoft.dotnet-openapi?view=aspnetcore-5.0

bradygaster avatar Mar 15 '21 16:03 bradygaster

Thanks @bradygaster. Glad it goes some way to doing the job.

stevetalkscode avatar Mar 15 '21 18:03 stevetalkscode

@bradygaster we should take advantage of this offer.

Rick-Anderson avatar Sep 29 '22 01:09 Rick-Anderson

@Rick-Anderson i think that's basically what i said up above. Do we have a next step?

bradygaster avatar Oct 10 '22 15:10 bradygaster

@Rick-Anderson i think that's basically what i said up above. Do we have a next step?

@bradygaster you could outline what you want transferred from @stevetalkscode blog to this doc, then @stevetalkscode could do a PR and you could review it.

Rick-Anderson avatar Oct 10 '22 19:10 Rick-Anderson