dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.54k stars 25.31k forks source link

Requesting documentation on the <OpenApiReference /> element #15899

Open kevdev424 opened 4 years ago

kevdev424 commented 4 years ago

[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.

guardrex commented 4 years ago

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.

scottaddie commented 4 years ago

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

dougbu commented 4 years ago

@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

SimonCull commented 4 years ago

Has there been any update on this?

bradygaster commented 4 years ago

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.

jkone27 commented 4 years ago

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

stevetalkscode commented 3 years ago

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

bradygaster commented 3 years ago

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

stevetalkscode commented 3 years ago

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

Rick-Anderson commented 1 year ago

@bradygaster we should take advantage of this offer.

bradygaster commented 1 year ago

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

Rick-Anderson commented 1 year ago

@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.