Update content according to latest spec (#513)

* Update content according to latest spec

* Add Title to a bunch of types

* Add _meta to lots of types

* Address feedback, more cleanup, fix NAOT test failure
This commit is contained in:
Stephen Toub 2025-06-16 19:39:41 -04:00 • committed by GitHub
commit 2bcff315f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,9 +86,9 @@ builder.Services
var @ref = @params.Ref;
var argument = @params.Argument;
if (@ref.Type == "ref/resource")
if (@ref is ResourceTemplateReference rtr)
{
var resourceId = @ref.Uri?.Split("/").Last();
var resourceId = rtr.Uri?.Split("/").Last();
if (resourceId is null)
{
@ -103,7 +103,7 @@ builder.Services
};
}
if (@ref.Type == "ref/prompt")
if (@ref is PromptReference pr)
{
if (!exampleCompletions.TryGetValue(argument.Name, out IEnumerable<string>? value))
{